summary refs log tree commit diff
path: root/pkgs/tools/filesystems/garage
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2022-02-09 10:32:43 +0800
committerNick Cao <nickcao@nichi.co>2022-02-10 19:29:25 +0800
commit28486b2af825ce49184f8f6898c2a377b9f58470 (patch)
tree25bee6b4e36e6ee513b6e38dc9ac55b37031a860 /pkgs/tools/filesystems/garage
parent3ecddf791da4d893beb35fb09eb9da55b326f4fb (diff)
downloadnixpkgs-28486b2af825ce49184f8f6898c2a377b9f58470.tar
nixpkgs-28486b2af825ce49184f8f6898c2a377b9f58470.tar.gz
nixpkgs-28486b2af825ce49184f8f6898c2a377b9f58470.tar.bz2
nixpkgs-28486b2af825ce49184f8f6898c2a377b9f58470.tar.lz
nixpkgs-28486b2af825ce49184f8f6898c2a377b9f58470.tar.xz
nixpkgs-28486b2af825ce49184f8f6898c2a377b9f58470.tar.zst
nixpkgs-28486b2af825ce49184f8f6898c2a377b9f58470.zip
garage: init at 0.6.0
Diffstat (limited to 'pkgs/tools/filesystems/garage')
-rw-r--r--pkgs/tools/filesystems/garage/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/garage/default.nix b/pkgs/tools/filesystems/garage/default.nix
new file mode 100644
index 00000000000..fbeac15a38e
--- /dev/null
+++ b/pkgs/tools/filesystems/garage/default.nix
@@ -0,0 +1,26 @@
+{ lib, rustPlatform, fetchFromGitea, testVersion, garage }:
+rustPlatform.buildRustPackage rec {
+  pname = "garage";
+  version = "0.6.0";
+
+  src = fetchFromGitea {
+    domain = "git.deuxfleurs.fr";
+    owner = "Deuxfleurs";
+    repo = "garage";
+    rev = "v${version}";
+    sha256 = "sha256-NNjqDOkMMRyXce+Z7RQpuffCuVhA1U3qH30rSv939ks=";
+  };
+
+  cargoSha256 = "sha256-eKJxRcC43D8qVLORer34tlmsWhELTbcJbZLyf0MB618=";
+
+  passthru = {
+    tests.version = 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 ];
+  };
+}