unpackSource is to be included in phases .. So you can set phases after calling unpackSource manually
cd $rootSource is called at end of unpackPhase svn path=/nixpkgs/trunk/; revision=9161
This commit is contained in:
parent
e6c5500d42
commit
a9f676e098
@ -489,11 +489,13 @@ unpackW() {
|
|||||||
|
|
||||||
|
|
||||||
unpackPhase() {
|
unpackPhase() {
|
||||||
|
sourceRoot=. # don't change to user dir homeless shelter if custom unpackSource does'nt set sourceRoot
|
||||||
header "unpacking sources"
|
header "unpacking sources"
|
||||||
startLog "unpack"
|
startLog "unpack"
|
||||||
unpackW
|
unpackW
|
||||||
stopLog
|
stopLog
|
||||||
stopNest
|
stopNest
|
||||||
|
cd $sourceRoot
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -523,6 +525,23 @@ 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
|
||||||
@ -834,9 +853,6 @@ genericBuild() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
unpackPhase
|
|
||||||
cd $sourceRoot
|
|
||||||
|
|
||||||
if test -z "$phases"; then
|
if test -z "$phases"; then
|
||||||
phases="patchPhase configurePhase buildPhase checkPhase \
|
phases="patchPhase configurePhase buildPhase checkPhase \
|
||||||
installPhase fixupPhase distPhase";
|
installPhase fixupPhase distPhase";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user