1 { stdenv, fetchurl, lib, openssl }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/ibmswtpm2/ibmtpm${version}.tar.gz";
9 hash = "sha256-PLZC+HGheyPVCwRuX5X0ScIodBX8HnrrS9u4kg28s48=";
12 buildInputs = [ openssl ];
17 # Fix hardcoded path to GCC.
18 substituteInPlace makefile --replace /usr/bin/gcc "${stdenv.cc}/bin/cc"
20 # Remove problematic default CFLAGS.
21 substituteInPlace makefile \
22 --replace -Werror "" \
29 cp tpm_server $out/bin
33 description = "IBM's Software TPM 2.0, an implementation of the TCG TPM 2.0 specification";
34 homepage = "https://sourceforge.net/projects/ibmswtpm2/";
35 platforms = platforms.linux;
36 maintainers = with maintainers; [ delroth ];
37 license = licenses.bsd3;