40 lines
675 B
Nix
40 lines
675 B
Nix
|
{
|
||
|
|
||
|
pkgsSrc,
|
||
|
buildSystem,
|
||
|
hostSystem,
|
||
|
|
||
|
fetchgit,
|
||
|
buildEnv,
|
||
|
minio-client,
|
||
|
|
||
|
}: let
|
||
|
|
||
|
version = "0.8.1";
|
||
|
|
||
|
src = fetchgit {
|
||
|
name = "garage-v${version}";
|
||
|
url = "https://git.deuxfleurs.fr/Deuxfleurs/garage.git";
|
||
|
rev = "76230f20282e73a5a5afa33af68152acaf732cf5";
|
||
|
sha256 = "sha256-lpNp/jw4YaczG3NM3pVWR0cZ8u/KBQCWvvfAswO4+Do=";
|
||
|
};
|
||
|
|
||
|
compiled = (import "${src}/nix/compile.nix") {
|
||
|
|
||
|
system = buildSystem;
|
||
|
target = hostSystem;
|
||
|
pkgsSrc = pkgsSrc;
|
||
|
|
||
|
cargo2nixOverlay = (import "${src}/nix/common.nix").cargo2nixOverlay;
|
||
|
|
||
|
release = true;
|
||
|
git_version = version;
|
||
|
|
||
|
};
|
||
|
|
||
|
in
|
||
|
|
||
|
compiled.workspace.garage {
|
||
|
compileMode = "build";
|
||
|
}
|