summary refs log tree commit diff
path: root/pkgs/tools/filesystems/garage/default.nix
blob: 8799ec5a3d2ab00c99612e7945ea4e5ed2c293c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, rustPlatform, fetchFromGitea, protobuf, testers, garage }:
rustPlatform.buildRustPackage rec {
  pname = "garage";
  version = "0.7.0";

  src = fetchFromGitea {
    domain = "git.deuxfleurs.fr";
    owner = "Deuxfleurs";
    repo = "garage";
    rev = "v${version}";
    sha256 = "sha256-gs0TW431YUrdsdJ+PYrJgnLiBmDPYnUR0iVnQ/YqIfU=";
  };

  cargoSha256 = "sha256-XGSenT2q3VXNcIT1Lg1e5HTOkEdOb1o3H07ahteQM/o=";

  nativeBuildInputs = [ protobuf ];

  passthru = {
    tests.version = testers.testVersion { package = garage; };
  };

  meta = {
    description = "S3-compatible object store for small self-hosted geo-distributed deployments";
    homepage = "https://garagehq.deuxfleurs.fr";
    license = lib.licenses.agpl3Only;
    maintainers = with lib.maintainers; [ nickcao _0x4A6F ];
  };
}