2014-08-12 18:38:15 +01:00
|
|
|
{ stdenv, fetchurl, trousers, openssl }:
|
2013-10-01 21:15:06 +01:00
|
|
|
|
2017-03-01 22:13:10 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "tpm-quote-tools";
|
2018-02-28 01:47:13 +00:00
|
|
|
version = "1.0.4";
|
2013-10-01 21:15:06 +01:00
|
|
|
|
2017-03-01 22:13:10 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/project/tpmquotetools/${version}/${pname}-${version}.tar.gz";
|
2018-02-28 01:47:13 +00:00
|
|
|
sha256 = "1qjs83xb4np4yn1bhbjfhvkiika410v8icwnjix5ad96w2nlxp0h";
|
2013-10-01 21:15:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ trousers openssl ];
|
2014-04-22 13:04:36 +01:00
|
|
|
|
2017-03-01 22:13:10 +00:00
|
|
|
postFixup = ''
|
|
|
|
patchelf \
|
|
|
|
--set-rpath "${stdenv.lib.makeLibraryPath [ openssl ]}:$(patchelf --print-rpath $out/bin/tpm_mkaik)" \
|
|
|
|
$out/bin/tpm_mkaik
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2014-11-11 13:20:43 +00:00
|
|
|
description = "A collection of programs that provide support for TPM based attestation using the TPM quote mechanism";
|
|
|
|
longDescription = ''
|
|
|
|
The TPM Quote Tools is a collection of programs that provide support
|
|
|
|
for TPM based attestation using the TPM quote mechanism. The manual
|
|
|
|
page for tpm_quote_tools provides a usage overview.
|
|
|
|
'';
|
2014-04-22 13:04:36 +01:00
|
|
|
homepage = http://tpmquotetools.sourceforge.net/;
|
|
|
|
license = licenses.bsd3;
|
2019-12-26 21:28:10 +00:00
|
|
|
maintainers = with maintainers; [ ak ];
|
2014-04-22 13:04:36 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2013-10-01 21:15:06 +01:00
|
|
|
}
|