2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, trousers, openssl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "tpm-quote-tools";
|
|
|
|
version = "1.0.4";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
src = fetchurl {
|
2020-04-24 23:36:52 +00:00
|
|
|
url = "mirror://sourceforge/project/tpmquotetools/${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1qjs83xb4np4yn1bhbjfhvkiika410v8icwnjix5ad96w2nlxp0h";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ trousers openssl ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
patchelf \
|
2021-01-15 22:18:51 +00:00
|
|
|
--set-rpath "${lib.makeLibraryPath [ openssl ]}:$(patchelf --print-rpath $out/bin/tpm_mkaik)" \
|
2020-04-24 23:36:52 +00:00
|
|
|
$out/bin/tpm_mkaik
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +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.
|
|
|
|
'';
|
|
|
|
homepage = "http://tpmquotetools.sourceforge.net/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ak ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|