tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
age-plugin-1p: init at 0.1.0
Michael Hoang
8 months ago
29078634
5461b7fa
+41
-6
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
ag
age
package.nix
age-plugin-1p
package.nix
+33
pkgs/by-name/ag/age-plugin-1p/package.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
buildGoModule,
4
4
+
fetchFromGitHub,
5
5
+
}:
6
6
+
7
7
+
buildGoModule rec {
8
8
+
pname = "age-plugin-1p";
9
9
+
version = "0.1.0";
10
10
+
11
11
+
src = fetchFromGitHub {
12
12
+
owner = "Enzime";
13
13
+
repo = "age-plugin-1p";
14
14
+
tag = "v${version}";
15
15
+
hash = "sha256-QYHHD7wOgRxRVkUOjwMz5DV8oxlb9mmb2K4HPoISguU=";
16
16
+
};
17
17
+
18
18
+
vendorHash = "sha256-WrdwhlaqciVEB2L+Dh/LEeSE7I3+PsOTW4c+0yOKzKY=";
19
19
+
20
20
+
ldflags = [
21
21
+
"-s"
22
22
+
"-w"
23
23
+
];
24
24
+
25
25
+
meta = with lib; {
26
26
+
description = "Use SSH keys from 1Password with age";
27
27
+
mainProgram = "age-plugin-1p";
28
28
+
homepage = "https://github.com/Enzime/age-plugin-1p";
29
29
+
license = licenses.mit;
30
30
+
platforms = platforms.all;
31
31
+
maintainers = with maintainers; [ Enzime ];
32
32
+
};
33
33
+
}
+8
-6
pkgs/by-name/ag/age/package.nix
···
3
3
buildGoModule,
4
4
fetchFromGitHub,
5
5
installShellFiles,
6
6
-
age-plugin-tpm,
6
6
+
age-plugin-fido2-hmac,
7
7
+
age-plugin-ledger,
7
8
age-plugin-se,
8
9
age-plugin-sss,
9
9
-
age-plugin-ledger,
10
10
+
age-plugin-tpm,
10
11
age-plugin-yubikey,
11
11
-
age-plugin-fido2-hmac,
12
12
+
age-plugin-1p,
12
13
makeWrapper,
13
14
runCommand,
14
15
}:
···
59
60
# group age plugins together
60
61
passthru.plugins = {
61
62
inherit
62
62
-
age-plugin-tpm
63
63
+
age-plugin-fido2-hmac
64
64
+
age-plugin-ledger
63
65
age-plugin-se
64
66
age-plugin-sss
65
65
-
age-plugin-ledger
67
67
+
age-plugin-tpm
66
68
age-plugin-yubikey
67
67
-
age-plugin-fido2-hmac
69
69
+
age-plugin-1p
68
70
;
69
71
};
70
72