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() {
|
||||
sourceRoot=. # don't change to user dir homeless shelter if custom unpackSource does'nt set sourceRoot
|
||||
header "unpacking sources"
|
||||
startLog "unpack"
|
||||
unpackW
|
||||
stopLog
|
||||
stopNest
|
||||
cd $sourceRoot
|
||||
}
|
||||
|
||||
|
||||
@ -523,6 +525,23 @@ patchW() {
|
||||
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() {
|
||||
if test -z "$patchPhase" -a -z "$patches"; then return; fi
|
||||
@ -834,9 +853,6 @@ genericBuild() {
|
||||
return
|
||||
fi
|
||||
|
||||
unpackPhase
|
||||
cd $sourceRoot
|
||||
|
||||
if test -z "$phases"; then
|
||||
phases="patchPhase configurePhase buildPhase checkPhase \
|
||||
installPhase fixupPhase distPhase";
|
||||
|
Loading…
Reference in New Issue
Block a user