summary refs log tree commit diff
path: root/pkgs/tools/security/tpm-quote-tools/default.nix
blob: f7526ac7225d8e5eba667c492518c41e06278a0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ stdenv, fetchurl, trousers, openssl }:

stdenv.mkDerivation rec { 
  pname = "tpm-quote-tools";
  version = "1.0.4";

  src = fetchurl { 
    url = "mirror://sourceforge/project/tpmquotetools/${version}/${pname}-${version}.tar.gz";
    sha256 = "1qjs83xb4np4yn1bhbjfhvkiika410v8icwnjix5ad96w2nlxp0h";
  };

  buildInputs = [ trousers openssl ];

  postFixup = ''
    patchelf \
      --set-rpath "${stdenv.lib.makeLibraryPath [ openssl ]}:$(patchelf --print-rpath $out/bin/tpm_mkaik)" \
      $out/bin/tpm_mkaik
  '';

  meta = with stdenv.lib; { 
    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;
  };
}