isle/nix/garage.nix
Brian Picciano 8e800951a6 Remove sources from flake, everything is defined in default.nix now
This includes re-adding the garage build ourselves, rather than using
their flake.
2023-02-15 13:56:22 +01:00

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";
}