swtpm: fix swtpm_setup and swtpm_localca not finding own binaries (#405843)

This commit is contained in:
Arthur Gautier
2025-05-11 04:24:22 +00:00
committed by GitHub
+8
View File
@@ -16,6 +16,7 @@
socat,
gnutls,
perl,
makeWrapper,
# Tests
python3,
@@ -42,6 +43,7 @@ stdenv.mkDerivation (finalAttrs: {
perl # for pod2man
python3
autoreconfHook
makeWrapper
];
nativeCheckInputs = [
@@ -113,6 +115,12 @@ stdenv.mkDerivation (finalAttrs: {
'LC_ALL=C.UTF-8 certtool'
'';
# Workaround for https://github.com/stefanberger/swtpm/issues/795
postFixup = ''
wrapProgram "$out/bin/swtpm_localca" --suffix PATH : "$out/bin"
wrapProgram "$out/bin/swtpm_setup" --suffix PATH : "$out/bin"
'';
doCheck = true;
enableParallelBuilding = true;