2022-11-16 21:21:24 +00:00
|
|
|
{
|
|
|
|
description = "Garage, an S3-compatible distributed object store for self-hosted deployments";
|
|
|
|
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/a3073c49bc0163fea6a121c276f526837672b555";
|
|
|
|
inputs.cargo2nix = {
|
|
|
|
# As of 2022-10-18: two small patches over unstable branch, one for clippy and one to fix feature detection
|
|
|
|
url = "github:Alexis211/cargo2nix/a7a61179b66054904ef6a195d8da736eaaa06c36";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, cargo2nix }: let
|
2022-11-16 22:47:10 +00:00
|
|
|
git_version = self.lastModifiedDate;
|
2022-11-16 21:21:24 +00:00
|
|
|
compile = import ./nix/compile.nix;
|
|
|
|
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
packages = forAllSystems (system: {
|
|
|
|
default = (compile {
|
|
|
|
inherit system git_version;
|
|
|
|
pkgsSrc = nixpkgs;
|
|
|
|
cargo2nixOverlay = cargo2nix.overlays.default;
|
|
|
|
release = true;
|
|
|
|
}).workspace.garage {
|
|
|
|
compileMode = "build";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|