ibm-sw-tpm2: init at 1332

This commit is contained in:
Pierre Bourdon 2019-02-14 04:42:07 +01:00
parent 688ca701b2
commit 67d912af0a
No known key found for this signature in database
GPG key ID: 6FB80DCD84DA0F1C
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ stdenv, fetchurl, lib, openssl }:
stdenv.mkDerivation rec {
pname = "ibm-sw-tpm2";
version = "1332";
src = fetchurl {
url = "mirror://sourceforge/ibmswtpm2/ibmtpm${version}.tar.gz";
sha256 = "1zdhi8acd4jfp1v7ibd86hcv0g39yk8qrnhxjmmgzn8i7npr70cf";
};
buildInputs = [ openssl ];
sourceRoot = "src";
prePatch = ''
# Fix hardcoded path to GCC.
substituteInPlace makefile --replace /usr/bin/gcc "${stdenv.cc}/bin/cc"
# Remove problematic default CFLAGS.
substituteInPlace makefile \
--replace -Werror "" \
--replace -O0 "" \
--replace -ggdb ""
'';
installPhase = ''
mkdir -p $out/bin
cp tpm_server $out/bin
'';
meta = with lib; {
description = "IBM's Software TPM 2.0, an implementation of the TCG TPM 2.0 specification";
homepage = https://sourceforge.net/projects/ibmswtpm2/;
platforms = platforms.linux;
maintainers = with maintainers; [ delroth ];
license = licenses.bsd3;
};
}

View file

@ -3363,6 +3363,8 @@ in
iannix = libsForQt5.callPackage ../applications/audio/iannix { };
ibm-sw-tpm2 = callPackage ../tools/security/ibm-sw-tpm2 { };
ibniz = callPackage ../tools/graphics/ibniz { };
icecast = callPackage ../servers/icecast { };