blob: f95f761c580b308755b0849ebf9da78ad19b0d83 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{ lib
, buildGoModule
, fetchFromGitHub
, swtpm
, openssl
}:
buildGoModule rec {
pname = "age-plugin-tpm";
version = "0.2.0";
src = fetchFromGitHub {
owner = "Foxboron";
repo = "age-plugin-tpm";
rev = "v${version}";
hash = "sha256-oTvK8U5j+llHgoChhGb+vcUrUf9doVYxd3d5MEuCNz8=";
};
proxyVendor = true;
vendorHash = "sha256-veduD0K3Onkqvyg9E5v854a6/8UIRQZEH098lUepRNU=";
nativeCheckInputs = [
swtpm
];
buildInputs = [
openssl
];
ldflags = [
"-s"
"-w"
];
meta = with lib; {
description = "TPM 2.0 plugin for age (This software is experimental, use it at your own risk)";
mainProgram = "age-plugin-tpm";
homepage = "https://github.com/Foxboron/age-plugin-tpm";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ kranzes sgo ];
};
}
|