rec { version = "1.0.0"; src = builtins.fetchGit { name = "garage-v${version}"; url = "https://git.deuxfleurs.fr/Deuxfleurs/garage.git"; rev = "ff093ddbb8485409f389abe7b5e569cb38d222d2"; }; 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; # 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" ]; }; in compile.workspace.garage { compileMode = "build"; }; }