39 lines
844 B
Nix
39 lines
844 B
Nix
rec {
|
|
|
|
version = "0.8.1";
|
|
|
|
src = builtins.fetchGit {
|
|
name = "garage-v${version}";
|
|
url = "https://git.deuxfleurs.fr/Deuxfleurs/garage.git";
|
|
rev = "76230f20282e73a5a5afa33af68152acaf732cf5";
|
|
};
|
|
|
|
# TODO compiling garage broke using 24.05, so for now use the pkgs pinned in
|
|
# the garage repo. Probably will revisit this when garage gets upgraded
|
|
# anyway.
|
|
pkgsSrc = (import "${src}/nix/common.nix").pkgsSrc;
|
|
|
|
package = {
|
|
#pkgsSrc,
|
|
buildSystem,
|
|
hostSystem,
|
|
}: let
|
|
|
|
compile = (import "${src}/nix/compile.nix") {
|
|
|
|
system = buildSystem;
|
|
target = hostSystem;
|
|
pkgsSrc = pkgsSrc;
|
|
|
|
cargo2nixOverlay = (import "${src}/nix/common.nix").cargo2nixOverlay;
|
|
|
|
release = true;
|
|
git_version = version;
|
|
};
|
|
|
|
in
|
|
compile.workspace.garage {
|
|
compileMode = "build";
|
|
};
|
|
}
|