depot/third_party/nixpkgs/pkgs/tools/security/age-plugin-tpm/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

44 lines
856 B
Nix

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