From 29078634e306e1961ba04148cf5bc4b7c19ba2d8 Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Tue, 29 Apr 2025 16:43:40 +1000 Subject: [PATCH] age-plugin-1p: init at 0.1.0 --- pkgs/by-name/ag/age-plugin-1p/package.nix | 33 +++++++++++++++++++++++ pkgs/by-name/ag/age/package.nix | 14 +++++----- 2 files changed, 41 insertions(+), 6 deletions(-) create mode 100644 pkgs/by-name/ag/age-plugin-1p/package.nix diff --git a/pkgs/by-name/ag/age-plugin-1p/package.nix b/pkgs/by-name/ag/age-plugin-1p/package.nix new file mode 100644 index 000000000000..453c3752cbdf --- /dev/null +++ b/pkgs/by-name/ag/age-plugin-1p/package.nix @@ -0,0 +1,33 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "age-plugin-1p"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "Enzime"; + repo = "age-plugin-1p"; + tag = "v${version}"; + hash = "sha256-QYHHD7wOgRxRVkUOjwMz5DV8oxlb9mmb2K4HPoISguU="; + }; + + vendorHash = "sha256-WrdwhlaqciVEB2L+Dh/LEeSE7I3+PsOTW4c+0yOKzKY="; + + ldflags = [ + "-s" + "-w" + ]; + + meta = with lib; { + description = "Use SSH keys from 1Password with age"; + mainProgram = "age-plugin-1p"; + homepage = "https://github.com/Enzime/age-plugin-1p"; + license = licenses.mit; + platforms = platforms.all; + maintainers = with maintainers; [ Enzime ]; + }; +} diff --git a/pkgs/by-name/ag/age/package.nix b/pkgs/by-name/ag/age/package.nix index bccae445b5ca..0a0c0a43eed9 100644 --- a/pkgs/by-name/ag/age/package.nix +++ b/pkgs/by-name/ag/age/package.nix @@ -3,12 +3,13 @@ buildGoModule, fetchFromGitHub, installShellFiles, - age-plugin-tpm, + age-plugin-fido2-hmac, + age-plugin-ledger, age-plugin-se, age-plugin-sss, - age-plugin-ledger, + age-plugin-tpm, age-plugin-yubikey, - age-plugin-fido2-hmac, + age-plugin-1p, makeWrapper, runCommand, }: @@ -59,12 +60,13 @@ buildGoModule (final: { # group age plugins together passthru.plugins = { inherit - age-plugin-tpm + age-plugin-fido2-hmac + age-plugin-ledger age-plugin-se age-plugin-sss - age-plugin-ledger + age-plugin-tpm age-plugin-yubikey - age-plugin-fido2-hmac + age-plugin-1p ; };