mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 11:32:03 +00:00
b7f4bda282
If these aren't defined, the stdenv defaults are used in the `*Phase` case, or no extra phases are done, in the `*Phases` case.
19 lines
453 B
Bash
19 lines
453 B
Bash
# Setup hook to use in case a wheel is fetched
|
|
echo "Sourcing wheel setup hook"
|
|
|
|
wheelUnpackPhase(){
|
|
echo "Executing wheelUnpackPhase"
|
|
runHook preUnpack
|
|
|
|
mkdir -p dist
|
|
cp "$src" "dist/$(stripHash "$src")"
|
|
|
|
# runHook postUnpack # Calls find...?
|
|
echo "Finished executing wheelUnpackPhase"
|
|
}
|
|
|
|
if [ -z "${dontUseWheelUnpack-}" ] && [ -z "${unpackPhase-}" ]; then
|
|
echo "Using wheelUnpackPhase"
|
|
unpackPhase=wheelUnpackPhase
|
|
fi
|