1 { lib, stdenv, rustPlatform, fetchFromGitea, openssl, pkg-config, protobuf
2 , testers, Security, garage }:
4 rustPlatform.buildRustPackage rec {
9 domain = "git.deuxfleurs.fr";
13 sha256 = "sha256-WDhe2L+NalMoIy2rhfmv8KCNDMkcqBC9ezEKKocihJg=";
16 cargoSha256 = "sha256-5m4c8/upBYN8nuysDhGKEnNVJjEGC+yLrraicrAQOfI=";
18 nativeBuildInputs = [ protobuf pkg-config ];
22 ] ++ lib.optional stdenv.isDarwin Security;
24 OPENSSL_NO_VENDOR = true;
26 # See https://git.deuxfleurs.fr/Deuxfleurs/garage/src/tag/v0.7.2/default.nix#L84-L98
27 # on version changes for checking if changes are required here
29 "kubernetes-discovery"
32 # To make integration tests pass, we include the optional k2v feature here,
33 # but not in buildFeatures. See:
34 # https://garagehq.deuxfleurs.fr/documentation/reference-manual/k2v/
37 "kubernetes-discovery"
41 tests.version = testers.testVersion { package = garage; };
45 description = "S3-compatible object store for small self-hosted geo-distributed deployments";
46 homepage = "https://garagehq.deuxfleurs.fr";
47 license = lib.licenses.agpl3Only;
48 maintainers = with lib.maintainers; [ nickcao _0x4A6F ];