2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, trousers, openssl }:
|
2013-10-01 20:15:06 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "tpm-quote-tools";
|
2018-02-28 01:47:13 +00:00
|
|
|
version = "1.0.4";
|
2013-10-01 20:15:06 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://sourceforge/project/tpmquotetools/${version}/${pname}-${version}.tar.gz";
|
2018-02-28 01:47:13 +00:00
|
|
|
sha256 = "1qjs83xb4np4yn1bhbjfhvkiika410v8icwnjix5ad96w2nlxp0h";
|
2013-10-01 20:15:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ trousers openssl ];
|
2014-04-22 12:04:36 +00:00
|
|
|
|
2017-03-01 22:13:10 +00:00
|
|
|
postFixup = ''
|
|
|
|
patchelf \
|
2021-01-15 09:19:50 +00:00
|
|
|
--set-rpath "${lib.makeLibraryPath [ openssl ]}:$(patchelf --print-rpath $out/bin/tpm_mkaik)" \
|
2017-03-01 22:13:10 +00:00
|
|
|
$out/bin/tpm_mkaik
|
|
|
|
'';
|
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
meta = with lib; {
|
2014-11-11 13:20:43 +00:00
|
|
|
description = "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.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://tpmquotetools.sourceforge.net/";
|
2014-04-22 12:04:36 +00:00
|
|
|
license = licenses.bsd3;
|
2019-12-26 21:28:10 +00:00
|
|
|
maintainers = with maintainers; [ ak ];
|
2014-04-22 12:04:36 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2013-10-01 20:15:06 +00:00
|
|
|
}
|