diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-12-21 12:21:53 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-02-01 15:25:31 +0100 |
commit | 16f728752a04931dd098421eb54514f6ef707874 (patch) | |
tree | 61580b351d863a81358b0c6d09474501fdce2cfb | |
parent | 26187c65b637c2ee2a27674a5585af8106878736 (diff) |
tpm2-tss-engine: init at 1.1.0
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | pkgs/tools/security/tpm2-tss-engine/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
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 ]; + }; +} + |