2014-08-12 19:38:15 +02:00
|
|
|
{ stdenv, fetchurl, trousers, openssl }:
|
2013-10-01 22:15:06 +02:00
|
|
|
|
2017-03-01 23:13:10 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "tpm-quote-tools-${version}";
|
|
|
|
version = "1.0.3";
|
2013-10-01 22:15:06 +02:00
|
|
|
|
2017-03-01 23:13:10 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/tpmquotetools/${version}/${name}.tar.gz";
|
|
|
|
sha256 = "1d6ry2c78sgv0z4phfrwrbvgag83xnnfri2cdzrd86w4yfgnfwdf";
|
2013-10-01 22:15:06 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ trousers openssl ];
|
2014-04-22 14:04:36 +02:00
|
|
|
|
2017-03-01 23:13:10 +01: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 14:20:43 +01: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 14:04:36 +02:00
|
|
|
homepage = http://tpmquotetools.sourceforge.net/;
|
|
|
|
license = licenses.bsd3;
|
2017-03-01 23:13:10 +01:00
|
|
|
maintainers = with maintainers; [ ak ndowens ];
|
2014-04-22 14:04:36 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2013-10-01 22:15:06 +02:00
|
|
|
}
|