Merge pull request #145521 from SuperSandro2000/swtpm

swtpm: change prePatch to postPatch
This commit is contained in:
Bobby Rong 2021-11-13 17:29:51 +08:00 committed by GitHub
commit 7e0d135480
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,7 @@ stdenv.mkDerivation rec {
perl # for pod2man
autoreconfHook
];
buildInputs = [
libtpms
openssl libtasn1 libseccomp
@ -45,7 +46,7 @@ stdenv.mkDerivation rec {
"--localstatedir=/var"
];
prePatch = ''
postPatch = ''
# Makefile tries to create the directory /var/lib/swtpm-localca, which fails
substituteInPlace samples/Makefile.am \
--replace 'install-data-local:' 'do-not-execute:'