From 16f728752a04931dd098421eb54514f6ef707874 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 21 Dec 2020 12:21:53 +0100 Subject: tpm2-tss-engine: init at 1.1.0 Signed-off-by: Matthias Beyer --- pkgs/tools/security/tpm2-tss-engine/default.nix | 46 +++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pkgs/tools/security/tpm2-tss-engine/default.nix diff --git a/pkgs/tools/security/tpm2-tss-engine/default.nix b/pkgs/tools/security/tpm2-tss-engine/default.nix new file mode 100644 index 000000000000..f24b8028abbd --- /dev/null +++ b/pkgs/tools/security/tpm2-tss-engine/default.nix @@ -0,0 +1,46 @@ +{ stdenv +, fetchFromGitHub +, lib +, pkg-config +, makeWrapper +, curl +, openssl +, tpm2-tss +}: + +stdenv.mkDerivation rec { + pname = "tpm2-tss-engine"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "tpm2-software"; + repo = pname; + rev = "v${version}"; + sha256 = "1pwc38izkk50s73xzcca1l5h265lmh4hcgpfq8lmbv5grq2qdal8"; + }; + + nativeBuildInputs = [ pkg-config makeWrapper ]; + buildInputs = [ + curl openssl tpm2-tss + ]; + + #preFixup = let + # ldLibraryPath = lib.makeLibraryPath ([ + # tpm2-tss + # ]; + #in '' + # for bin in $out/bin/*; do + # wrapProgram $bin \ + # --suffix LD_LIBRARY_PATH : "${ldLibraryPath}" + # done + #''; + + meta = with lib; { + description = "OpenSSL Engine for TPM2 devices"; + homepage = "tpm2-software.github.io"; + license = licenses.bsd3; + platforms = platforms.linux; + maintainers = with maintainers; [ matthiasbeyer ]; + }; +} + -- cgit v1.2.3