nixpkgs/pkgs/tools/security/simple-tpm-pk11/default.nix

30 lines
865 B
Nix
Raw Normal View History

2017-11-12 22:46:11 +01:00
{ stdenv, fetchFromGitHub, trousers, openssl, opencryptoki, autoreconfHook, libtool }:
stdenv.mkDerivation rec {
2017-11-12 22:46:11 +01:00
name = "simple-tpm-pk11-${version}";
version = "0.06";
2017-11-12 22:46:11 +01:00
src = fetchFromGitHub {
owner = "ThomasHabets";
repo = "simple-tpm-pk11";
rev = version;
sha256 = "0vpbaklr4r1a2am0pqcm6m41ph22mkcrq33y8ab5h8qkhkvhd6a6";
};
2017-11-12 22:46:11 +01:00
nativeBuildInputs = [ autoreconfHook libtool ];
buildInputs = [ trousers openssl opencryptoki ];
2017-11-12 22:46:11 +01:00
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Simple PKCS11 provider for TPM chips";
longDescription = ''
A simple library for using the TPM chip to secure SSH keys.
2017-11-12 22:46:11 +01:00
'';
homepage = https://github.com/ThomasHabets/simple-tpm-pk11;
2017-11-12 22:46:11 +01:00
license = licenses.asl20;
maintainers = with maintainers; [ tstrobel ];
platforms = platforms.unix;
};
}