Merge pull request #77325 from worldofpeace/tpm2-tss-fixbuild

tpm2-tss: fix build
This commit is contained in:
worldofpeace 2020-01-08 11:30:28 -05:00 committed by GitHub
commit f4654713a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
{ stdenv, lib, fetchurl
{ stdenv, lib, fetchurl, fetchpatch
, cmocka, doxygen, ibm-sw-tpm2, iproute, openssl, perl, pkgconfig, procps
, uthash, which }:
, uthash, which
}:
stdenv.mkDerivation rec {
pname = "tpm2-tss";
@ -11,6 +12,14 @@ stdenv.mkDerivation rec {
sha256 = "19jg09sxy3aj4dc1yv32jjv0m62cnmhjlw02jbh4d4pk2439m4l2";
};
patches = [
# Fix test failure. see https://github.com/tpm2-software/tpm2-tss/pull/1585
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/tpm2-software/tpm2-tss/pull/1585.patch";
sha256 = "0ak3l588ahzv3yx1gfa4sa6p74lsffxzkr23ppznm34wvlcci86n";
})
];
nativeBuildInputs = [
doxygen perl pkgconfig
# For unit tests and integration tests.