audiobookshelf: 2.18.1 -> 2.19.0 (#378967)
[NixPkgs.git] / pkgs / by-name / tp / tpm-quote-tools / package.nix
blobdbaa37f5047dc5f95052f0930abc1bf96d79272f
2   lib,
3   stdenv,
4   fetchurl,
5   trousers,
6   openssl,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "tpm-quote-tools";
11   version = "1.0.4";
13   src = fetchurl {
14     url = "mirror://sourceforge/project/tpmquotetools/${version}/${pname}-${version}.tar.gz";
15     sha256 = "1qjs83xb4np4yn1bhbjfhvkiika410v8icwnjix5ad96w2nlxp0h";
16   };
18   buildInputs = [
19     trousers
20     openssl
21   ];
23   postFixup = ''
24     patchelf \
25       --set-rpath "${lib.makeLibraryPath [ openssl ]}:$(patchelf --print-rpath $out/bin/tpm_mkaik)" \
26       $out/bin/tpm_mkaik
27   '';
29   meta = with lib; {
30     description = "Collection of programs that provide support for TPM based attestation using the TPM quote mechanism";
31     longDescription = ''
32       The TPM Quote Tools is a collection of programs that provide support
33       for TPM based attestation using the TPM quote mechanism.  The manual
34       page for tpm_quote_tools provides a usage overview.
35     '';
36     homepage = "http://tpmquotetools.sourceforge.net/";
37     license = licenses.bsd3;
38     maintainers = with maintainers; [ ak ];
39     platforms = platforms.linux;
40   };