Skip to content

Commit 7c7a19c

Browse files
authored
age-plugin-1p: init at 0.1.0 (#402746)
2 parents 3026feb + 2907863 commit 7c7a19c

File tree

2 files changed

+41
-6
lines changed

2 files changed

+41
-6
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
lib,
3+
buildGoModule,
4+
fetchFromGitHub,
5+
}:
6+
7+
buildGoModule rec {
8+
pname = "age-plugin-1p";
9+
version = "0.1.0";
10+
11+
src = fetchFromGitHub {
12+
owner = "Enzime";
13+
repo = "age-plugin-1p";
14+
tag = "v${version}";
15+
hash = "sha256-QYHHD7wOgRxRVkUOjwMz5DV8oxlb9mmb2K4HPoISguU=";
16+
};
17+
18+
vendorHash = "sha256-WrdwhlaqciVEB2L+Dh/LEeSE7I3+PsOTW4c+0yOKzKY=";
19+
20+
ldflags = [
21+
"-s"
22+
"-w"
23+
];
24+
25+
meta = with lib; {
26+
description = "Use SSH keys from 1Password with age";
27+
mainProgram = "age-plugin-1p";
28+
homepage = "https://github.com/Enzime/age-plugin-1p";
29+
license = licenses.mit;
30+
platforms = platforms.all;
31+
maintainers = with maintainers; [ Enzime ];
32+
};
33+
}

pkgs/by-name/ag/age/package.nix

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
buildGoModule,
44
fetchFromGitHub,
55
installShellFiles,
6-
age-plugin-tpm,
6+
age-plugin-fido2-hmac,
7+
age-plugin-ledger,
78
age-plugin-se,
89
age-plugin-sss,
9-
age-plugin-ledger,
10+
age-plugin-tpm,
1011
age-plugin-yubikey,
11-
age-plugin-fido2-hmac,
12+
age-plugin-1p,
1213
makeWrapper,
1314
runCommand,
1415
}:
@@ -59,12 +60,13 @@ buildGoModule (final: {
5960
# group age plugins together
6061
passthru.plugins = {
6162
inherit
62-
age-plugin-tpm
63+
age-plugin-fido2-hmac
64+
age-plugin-ledger
6365
age-plugin-se
6466
age-plugin-sss
65-
age-plugin-ledger
67+
age-plugin-tpm
6668
age-plugin-yubikey
67-
age-plugin-fido2-hmac
69+
age-plugin-1p
6870
;
6971
};
7072

0 commit comments

Comments
 (0)