Skip to content

Commit

Permalink
ibm-sw-tpm2: Fix build on RISC-V
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaofengli committed Oct 16, 2021
1 parent 2736cee commit 8524b11
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkgs/tools/security/ibm-sw-tpm2/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, lib, openssl }:
{ stdenv, fetchurl, fetchpatch, lib, openssl }:

stdenv.mkDerivation rec {
pname = "ibm-sw-tpm2";
Expand All @@ -9,6 +9,15 @@ stdenv.mkDerivation rec {
sha256 = "sha256-VRRZKK0rJPNL5qDqz5+0kuEODqkZuEKMch+pcOhdYUc=";
};

patches = [
(fetchpatch {
url = "https://github.com/kgoldman/ibmswtpm2/commit/e6684009aff9c1bad38875e3319c2e02ef791424.patch";
sha256 = "1flzlri807c88agmpb0w8xvh5f16mmqv86xw4ic4z272iynzd40j";
})
];

patchFlags = [ "-p2" ];

buildInputs = [ openssl ];

sourceRoot = "src";
Expand Down

0 comments on commit 8524b11

Please sign in to comment.