about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorAleksana <me@aleksana.moe>2024-05-19 14:54:33 +0800
committerGitHub <noreply@github.com>2024-05-19 14:54:33 +0800
commit57c78dc471ee9191c68c3937d96fe74004f3f2f2 (patch)
tree2827f42f73a9a0c6654bb13a226e5d8694604dba /pkgs
parent847875341e278e2e81f0f592a02c124f3f2e4c25 (diff)
parentdaa72d3e4983e92a580de641429dab41d6102dd5 (diff)
Merge pull request #312264 from MatthewCroughan/mc/age-plugin-fido2-hmac
age-plugin-fido2-hmac: init at 0.2.3
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/by-name/ag/age-plugin-fido2-hmac/package.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/by-name/ag/age-plugin-fido2-hmac/package.nix b/pkgs/by-name/ag/age-plugin-fido2-hmac/package.nix
new file mode 100644
index 0000000000000..209bc1a24728f
--- /dev/null
+++ b/pkgs/by-name/ag/age-plugin-fido2-hmac/package.nix
@@ -0,0 +1,35 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+, libfido2
+, stdenv
+}:
+
+buildGoModule rec {
+  pname = "age-plugin-fido2-hmac";
+  version = "0.2.3";
+
+  src = fetchFromGitHub {
+    owner = "olastor";
+    repo = "age-plugin-fido2-hmac";
+    rev = "v${version}";
+    hash = "sha256-P2gNOZeuODWEb/puFe6EA1wW3pc0xgM567qe4FKbFXg=";
+  };
+
+  vendorHash = "sha256-h4/tyq9oZt41IfRJmmsLHUpJiPJ7YuFu59ccM7jHsFo=";
+
+  ldflags = [ "-s" "-w" ];
+
+  buildInputs = [
+    libfido2
+  ];
+
+  meta = with lib; {
+    description = "Age plugin to encrypt files with fido2 tokens using the hmac-secret extension and non-discoverable credentials";
+    homepage = "https://github.com/olastor/age-plugin-fido2-hmac/";
+    license = licenses.mit;
+    maintainers = with maintainers; [ matthewcroughan ];
+    mainProgram = "age-plugin-fido2-hmac";
+    broken = stdenv.isDarwin;
+  };
+}