2022-09-11 15:47:08 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitea, openssl, pkg-config, protobuf
|
|
|
|
, testers, Security, garage }:
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "garage";
|
2022-09-11 15:47:08 +00:00
|
|
|
version = "0.7.3";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "git.deuxfleurs.fr";
|
|
|
|
owner = "Deuxfleurs";
|
|
|
|
repo = "garage";
|
|
|
|
rev = "v${version}";
|
2022-09-11 15:47:08 +00:00
|
|
|
sha256 = "sha256-WDhe2L+NalMoIy2rhfmv8KCNDMkcqBC9ezEKKocihJg=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
2022-09-11 15:47:08 +00:00
|
|
|
cargoSha256 = "sha256-5m4c8/upBYN8nuysDhGKEnNVJjEGC+yLrraicrAQOfI=";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2022-09-11 15:47:08 +00:00
|
|
|
nativeBuildInputs = [ protobuf pkg-config ];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2022-09-11 15:47:08 +00:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
] ++ lib.optional stdenv.isDarwin Security;
|
|
|
|
|
|
|
|
OPENSSL_NO_VENDOR = true;
|
|
|
|
|
|
|
|
# See https://git.deuxfleurs.fr/Deuxfleurs/garage/src/tag/v0.7.2/default.nix#L84-L98
|
|
|
|
# on version changes for checking if changes are required here
|
|
|
|
buildFeatures = [
|
|
|
|
"kubernetes-discovery"
|
|
|
|
];
|
|
|
|
|
|
|
|
# To make integration tests pass, we include the optional k2v feature here,
|
|
|
|
# but not in buildFeatures. See:
|
|
|
|
# https://garagehq.deuxfleurs.fr/documentation/reference-manual/k2v/
|
|
|
|
checkFeatures = [
|
|
|
|
"k2v"
|
|
|
|
"kubernetes-discovery"
|
|
|
|
];
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
passthru = {
|
2022-04-27 09:35:20 +00:00
|
|
|
tests.version = testers.testVersion { package = garage; };
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "S3-compatible object store for small self-hosted geo-distributed deployments";
|
|
|
|
homepage = "https://garagehq.deuxfleurs.fr";
|
|
|
|
license = lib.licenses.agpl3Only;
|
2022-11-21 17:40:18 +00:00
|
|
|
maintainers = with lib.maintainers; [ nickcao _0x4A6F teutat3s ];
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
}
|