Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, trousers, openssl }:
2
3stdenv.mkDerivation rec {
4 pname = "tpm-quote-tools";
5 version = "1.0.4";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/project/tpmquotetools/${version}/${pname}-${version}.tar.gz";
9 sha256 = "1qjs83xb4np4yn1bhbjfhvkiika410v8icwnjix5ad96w2nlxp0h";
10 };
11
12 buildInputs = [ trousers openssl ];
13
14 postFixup = ''
15 patchelf \
16 --set-rpath "${lib.makeLibraryPath [ openssl ]}:$(patchelf --print-rpath $out/bin/tpm_mkaik)" \
17 $out/bin/tpm_mkaik
18 '';
19
20 meta = with lib; {
21 description = "A collection of programs that provide support for TPM based attestation using the TPM quote mechanism";
22 longDescription = ''
23 The TPM Quote Tools is a collection of programs that provide support
24 for TPM based attestation using the TPM quote mechanism. The manual
25 page for tpm_quote_tools provides a usage overview.
26 '';
27 homepage = "http://tpmquotetools.sourceforge.net/";
28 license = licenses.bsd3;
29 maintainers = with maintainers; [ ak ];
30 platforms = platforms.linux;
31 };
32}