2023-02-15 13:58:47 +00:00
|
|
|
rec {
|
2023-02-15 12:56:22 +00:00
|
|
|
|
|
|
|
version = "0.8.1";
|
|
|
|
|
2023-02-15 13:58:47 +00:00
|
|
|
src = builtins.fetchGit {
|
2023-02-15 12:56:22 +00:00
|
|
|
name = "garage-v${version}";
|
|
|
|
url = "https://git.deuxfleurs.fr/Deuxfleurs/garage.git";
|
|
|
|
rev = "76230f20282e73a5a5afa33af68152acaf732cf5";
|
|
|
|
};
|
|
|
|
|
2024-06-10 14:01:27 +00:00
|
|
|
# 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;
|
|
|
|
|
2023-02-15 13:58:47 +00:00
|
|
|
package = {
|
2024-06-10 14:01:27 +00:00
|
|
|
#pkgsSrc,
|
2023-02-15 13:58:47 +00:00
|
|
|
buildSystem,
|
|
|
|
hostSystem,
|
|
|
|
}: let
|
2023-02-15 12:56:22 +00:00
|
|
|
|
2023-02-15 13:58:47 +00:00
|
|
|
compile = (import "${src}/nix/compile.nix") {
|
2023-02-15 12:56:22 +00:00
|
|
|
|
2023-02-15 13:58:47 +00:00
|
|
|
system = buildSystem;
|
|
|
|
target = hostSystem;
|
|
|
|
pkgsSrc = pkgsSrc;
|
2023-02-15 12:56:22 +00:00
|
|
|
|
2023-02-15 13:58:47 +00:00
|
|
|
cargo2nixOverlay = (import "${src}/nix/common.nix").cargo2nixOverlay;
|
2023-02-15 12:56:22 +00:00
|
|
|
|
2023-02-15 13:58:47 +00:00
|
|
|
release = true;
|
|
|
|
git_version = version;
|
|
|
|
};
|
2023-02-15 12:56:22 +00:00
|
|
|
|
2023-02-15 13:58:47 +00:00
|
|
|
in
|
|
|
|
compile.workspace.garage {
|
|
|
|
compileMode = "build";
|
|
|
|
};
|
|
|
|
}
|