diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/security/simple-tpm-pk11/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/security/simple-tpm-pk11/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/security/simple-tpm-pk11/default.nix b/nixpkgs/pkgs/tools/security/simple-tpm-pk11/default.nix new file mode 100644 index 000000000000..7d879aa497de --- /dev/null +++ b/nixpkgs/pkgs/tools/security/simple-tpm-pk11/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchFromGitHub, trousers, openssl, opencryptoki, autoreconfHook, libtool }: + +stdenv.mkDerivation rec { + pname = "simple-tpm-pk11"; + version = "0.06"; + + src = fetchFromGitHub { + owner = "ThomasHabets"; + repo = "simple-tpm-pk11"; + rev = version; + sha256 = "0vpbaklr4r1a2am0pqcm6m41ph22mkcrq33y8ab5h8qkhkvhd6a6"; + }; + + nativeBuildInputs = [ autoreconfHook libtool ]; + buildInputs = [ trousers openssl opencryptoki ]; + + enableParallelBuilding = true; + + meta = with lib; { + description = "Simple PKCS11 provider for TPM chips"; + longDescription = '' + A simple library for using the TPM chip to secure SSH keys. + ''; + homepage = "https://github.com/ThomasHabets/simple-tpm-pk11"; + license = licenses.asl20; + maintainers = with maintainers; [ ]; + platforms = platforms.unix; + }; +} |