2017-11-13 00:46:11 +03:00
|
|
|
{ stdenv, fetchFromGitHub, trousers, openssl, opencryptoki, autoreconfHook, libtool }:
|
2014-10-15 03:14:34 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "simple-tpm-pk11";
|
2017-11-13 00:46:11 +03:00
|
|
|
version = "0.06";
|
2014-10-15 03:14:34 +04:00
|
|
|
|
2017-11-13 00:46:11 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ThomasHabets";
|
|
|
|
repo = "simple-tpm-pk11";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0vpbaklr4r1a2am0pqcm6m41ph22mkcrq33y8ab5h8qkhkvhd6a6";
|
2014-10-15 03:14:34 +04:00
|
|
|
};
|
|
|
|
|
2017-11-13 00:46:11 +03:00
|
|
|
nativeBuildInputs = [ autoreconfHook libtool ];
|
|
|
|
buildInputs = [ trousers openssl opencryptoki ];
|
2014-10-15 03:14:34 +04:00
|
|
|
|
2017-11-13 00:46:11 +03:00
|
|
|
enableParallelBuilding = true;
|
2014-10-15 03:14:34 +04:00
|
|
|
|
|
|
|
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-13 00:46:11 +03:00
|
|
|
'';
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/ThomasHabets/simple-tpm-pk11";
|
2017-11-13 00:46:11 +03:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ tstrobel ];
|
2014-10-15 03:14:34 +04:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|