2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, trousers, openssl, opencryptoki, autoreconfHook, libtool }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|