From 96b18b09c26c28a371e769d55cfb769cc4a3285e Mon Sep 17 00:00:00 2001 From: Arbel Arad Date: Wed, 5 Mar 2025 12:34:14 +0200 Subject: [PATCH] age-plugin-sss: init at 0.2.5 remove "with lib" and replace rev with tag --- pkgs/by-name/ag/age-plugin-sss/package.nix | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/by-name/ag/age-plugin-sss/package.nix diff --git a/pkgs/by-name/ag/age-plugin-sss/package.nix b/pkgs/by-name/ag/age-plugin-sss/package.nix new file mode 100644 index 000000000000..036b110ed493 --- /dev/null +++ b/pkgs/by-name/ag/age-plugin-sss/package.nix @@ -0,0 +1,33 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "age-plugin-sss"; + version = "0.2.5"; + + src = fetchFromGitHub { + owner = "olastor"; + repo = "age-plugin-sss"; + tag = "v${version}"; + hash = "sha256-4cLQRG4Al1C3x/D385kb/aYTlQqe/5bS9oMLJmHOJ1I="; + }; + + vendorHash = "sha256-HQavX6X2k/oABnHXAnOwHNkGpCTr539zRk0xwO8zS9o="; + + ldflags = [ + "-s" + "-w" + "-X main.version=v${version}" + ]; + + meta = { + description = "Age plugin to split keys and wrap them with different recipients using Shamir's Secret Sharing"; + homepage = "https://github.com/olastor/age-plugin-sss/"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ arbel-arad ]; + mainProgram = "age-plugin-sss"; + }; +}