about summary refs log tree commit diff
path: root/pkgs/tools/security/agebox
diff options
context:
space:
mode:
authorThomas Gerbet <thomas@gerbet.me>2021-06-20 17:03:49 +0200
committerThomas Gerbet <thomas@gerbet.me>2021-06-20 17:03:49 +0200
commitd73437c73a7f9a90ff13b561139cac02de6b4579 (patch)
tree91da680b1342d8e6a6c7936d6a86e8e08107e32b /pkgs/tools/security/agebox
parenteacddc7f6e92727a7287079698fd73551bfad5f7 (diff)
agebox: init at 0.5.2
Diffstat (limited to 'pkgs/tools/security/agebox')
-rw-r--r--pkgs/tools/security/agebox/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/security/agebox/default.nix b/pkgs/tools/security/agebox/default.nix
new file mode 100644
index 0000000000000..29199870c7f79
--- /dev/null
+++ b/pkgs/tools/security/agebox/default.nix
@@ -0,0 +1,27 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "agebox";
+  version = "0.5.2";
+
+  src = fetchFromGitHub {
+    owner = "slok";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "0zn7jibhw5jd9wp1alx9ahj4szaig4a54ci3676kk5zqxr2hjz0c";
+  };
+  vendorSha256 = "0bc2pwz3yhzwqi0bcwqkkkrglg473qxhmz5s5955fvgajvjk7drn";
+
+  ldflags = [
+    "-s" "-w"
+    "-X main.Version=${version}"
+  ];
+
+  meta = with lib; {
+    homepage = "https://github.com/slok/agebox";
+    changelog = "https://github.com/slok/agebox/releases/tag/v${version}";
+    description = "Age based repository file encryption gitops tool";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ lesuisse ];
+  };
+}