Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
58 lines
1.0 KiB
Nix
58 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
callPackage,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
swtpm,
|
|
openssl,
|
|
age,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "age-plugin-tpm";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Foxboron";
|
|
repo = "age-plugin-tpm";
|
|
tag = "v${version}";
|
|
hash = "sha256-yr1PSSmcUoOrQ8VMQEoaCLNvDO+3+6N7XXdNUyYVz9M=";
|
|
};
|
|
|
|
proxyVendor = true;
|
|
|
|
vendorHash = "sha256-VEx6qP02QcwETOQUkMsrqVb+cOElceXcTDaUr480ngs=";
|
|
|
|
nativeCheckInputs = [
|
|
age
|
|
swtpm
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
passthru.tests = {
|
|
encrypt = callPackage ./tests/encrypt.nix { };
|
|
decrypt = nixosTests.age-plugin-tpm-decrypt;
|
|
};
|
|
|
|
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.all;
|
|
maintainers = with maintainers; [
|
|
kranzes
|
|
sgo
|
|
];
|
|
};
|
|
}
|