about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/tpm-quote-tools/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/security/tpm-quote-tools/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/security/tpm-quote-tools/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/security/tpm-quote-tools/default.nix b/nixpkgs/pkgs/tools/security/tpm-quote-tools/default.nix
new file mode 100644
index 000000000000..938d0a6f2946
--- /dev/null
+++ b/nixpkgs/pkgs/tools/security/tpm-quote-tools/default.nix
@@ -0,0 +1,32 @@
+{ lib, 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 "${lib.makeLibraryPath [ openssl ]}:$(patchelf --print-rpath $out/bin/tpm_mkaik)" \
+      $out/bin/tpm_mkaik
+  '';
+
+  meta = with 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;
+  };
+}