darwin.signingUtils: move signDarwinBinariesIn from fixupOutputHooks to postFixupHooks
to fix ghc build
This commit is contained in:
parent
02c5e5173f
commit
236fd9c902
1 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue