adding purityPhase hasen't been such a good idea - untested and if a small thing changes everything has to be rebuilt..
svn path=/nixpkgs/trunk/; revision=9174
This commit is contained in:
parent
b5db5e6e61
commit
f1cf8d1d7a
|
@ -525,23 +525,6 @@ patchW() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
purifyPhase() {
|
|
||||||
# copied and modified from acroread and ghcboot
|
|
||||||
# to be called in postUnpack
|
|
||||||
|
|
||||||
fullPath=
|
|
||||||
for i in \$buildInputs; do
|
|
||||||
fullPath=\$fullPath\${fullPath:+:}\$i/lib
|
|
||||||
done
|
|
||||||
|
|
||||||
dirs=${dirsToPurify:-.}
|
|
||||||
for dir in $dirs; do
|
|
||||||
find $dir -type f -perm +100 \\
|
|
||||||
-exec patchelf --interpreter \"\$(cat \$NIX_GCC/nix-support/dynamic-linker)\" \\
|
|
||||||
--set-rpath \$fullPath {};
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
patchPhase() {
|
patchPhase() {
|
||||||
if test -z "$patchPhase" -a -z "$patches"; then return; fi
|
if test -z "$patchPhase" -a -z "$patches"; then return; fi
|
||||||
|
@ -854,7 +837,7 @@ genericBuild() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -z "$phases"; then
|
if test -z "$phases"; then
|
||||||
phases="patchPhase configurePhase buildPhase checkPhase \
|
phases="unpackPhase patchPhase configurePhase buildPhase checkPhase \
|
||||||
installPhase fixupPhase distPhase";
|
installPhase fixupPhase distPhase";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue