2023-02-15 13:58:47 +00:00
|
|
|
rec {
|
2023-02-15 12:56:22 +00:00
|
|
|
|
2024-06-11 12:54:26 +00:00
|
|
|
version = "1.0.0";
|
2023-02-15 12:56:22 +00:00
|
|
|
|
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";
|
2024-06-11 12:54:26 +00:00
|
|
|
rev = "ff093ddbb8485409f389abe7b5e569cb38d222d2";
|
2023-02-15 12:56:22 +00:00
|
|
|
};
|
|
|
|
|
2023-02-15 13:58:47 +00:00
|
|
|
package = {
|
2024-06-11 12:54:26 +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;
|
2024-06-11 12:54:26 +00:00
|
|
|
|
|
|
|
# subset of the default release features, as defined in:
|
|
|
|
# https://git.deuxfleurs.fr/Deuxfleurs/garage/src/commit/ff093ddbb8485409f389abe7b5e569cb38d222d2/nix/compile.nix#L171
|
|
|
|
features = [
|
|
|
|
"garage/bundled-libs"
|
|
|
|
"garage/lmdb"
|
|
|
|
"garage/sqlite"
|
|
|
|
"garage/metrics"
|
|
|
|
"garage/syslog"
|
|
|
|
];
|
2023-02-15 13:58:47 +00:00
|
|
|
};
|
2023-02-15 12:56:22 +00:00
|
|
|
|
2023-02-15 13:58:47 +00:00
|
|
|
in
|
|
|
|
compile.workspace.garage {
|
|
|
|
compileMode = "build";
|
|
|
|
};
|
|
|
|
}
|