lol

Merge pull request #261034 from trofi/ibm-sw-tpm2-openssl-3.1

ibm-sw-tpm2: backport openssl-3.1 support

authored by

Pierre Bourdon and committed by
GitHub
89d2107b 5b761c2b

+18 -1
+18 -1
pkgs/tools/security/ibm-sw-tpm2/default.nix
··· 1 - { stdenv, fetchurl, lib, openssl }: 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , fetchpatch 5 + , openssl 6 + }: 2 7 3 8 stdenv.mkDerivation rec { 4 9 pname = "ibm-sw-tpm2"; ··· 8 13 url = "mirror://sourceforge/ibmswtpm2/ibmtpm${version}.tar.gz"; 9 14 hash = "sha256-PLZC+HGheyPVCwRuX5X0ScIodBX8HnrrS9u4kg28s48="; 10 15 }; 16 + 17 + patches = [ 18 + # Backport openssl-3.1 from development branch. 19 + # Can be removed with next release. 20 + (fetchpatch { 21 + name = "openssl-3.1.patch"; 22 + url = "https://github.com/kgoldman/ibmswtpm2/commit/15501bf4973d334ca9420fa2fb0f0fe1800871e0.patch"; 23 + includes = [ "TpmToOsslMath.h" ]; 24 + stripLen = 1; 25 + hash = "sha256-8TwyZVy8pQwq5Fl8cy9xJWtdckwL+QK0+DL5EHDLYUY="; 26 + }) 27 + ]; 11 28 12 29 buildInputs = [ openssl ]; 13 30