age-plugin-1p: init at 0.1.0

This commit is contained in:
Michael Hoang 2025-04-29 16:43:40 +10:00
parent 5461b7fa65
commit 29078634e3
2 changed files with 41 additions and 6 deletions

View file

@ -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 ];
};
}

View file

@ -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
;
};