3
0
Fork 0
forked from mirrors/nixpkgs

darwin.signingUtils: move signDarwinBinariesIn from fixupOutputHooks to postFixupHooks

to fix ghc build
This commit is contained in:
Pavol Rusnak 2021-08-24 18:48:22 +02:00 committed by Domen Kožar
parent 02c5e5173f
commit 236fd9c902

View file

@ -1,4 +1,4 @@
fixupOutputHooks+=('signDarwinBinariesIn $prefix')
postFixupHooks+=(signDarwinBinariesInAllOutputs)
# Uses signingUtils, see definition of autoSignDarwinBinariesHook in
# darwin-packages.nix
@ -14,7 +14,18 @@ signDarwinBinariesIn() {
return 0
fi
echo "signing $dir"
while IFS= read -r -d $'\0' f; do
signIfRequired "$f"
done < <(find "$dir" -type f -print0)
}
# Apply fixup to each output.
signDarwinBinariesInAllOutputs() {
local output
for output in $outputs; do
signDarwinBinariesIn "${!output}"
done
}