depot/third_party/nixpkgs/pkgs/tools/security/age-plugin-tpm/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

43 lines
820 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-BSb+8p5+RJMfcYc2+BuT4YbhCWCbcYOt9upesD11Ytw=";
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)";
homepage = "https://github.com/Foxboron/age-plugin-tpm";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ kranzes sgo ];
};
}