mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
e12b421add
merge cleanly right away (kde-4, kernel stuff) so it should be merged later. But the stdenv stuff is all there. svn path=/nixpkgs/branches/stdenv-updates-merge/; revision=10793
29 lines
594 B
Bash
29 lines
594 B
Bash
p1=$param1
|
|
p2=$param2
|
|
p3=$param3
|
|
p4=$param4
|
|
p5=$param5
|
|
_preHook="$preHook"
|
|
_postHook="$postHook"
|
|
preHook=
|
|
postHook=
|
|
|
|
source $stdenv/setup
|
|
|
|
mkdir $out
|
|
|
|
# Can't use substitute() here, because replace may not have been
|
|
# built yet (in the bootstrap).
|
|
sed \
|
|
-e "s^@preHook@^$_preHook^g" \
|
|
-e "s^@postHook@^$_postHook^g" \
|
|
-e "s^@initialPath@^$initialPath^g" \
|
|
-e "s^@gcc@^$gcc^g" \
|
|
-e "s^@shell@^$shell^g" \
|
|
-e "s^@param1@^$p1^g" \
|
|
-e "s^@param2@^$p2^g" \
|
|
-e "s^@param3@^$p3^g" \
|
|
-e "s^@param4@^$p4^g" \
|
|
-e "s^@param5@^$p5^g" \
|
|
< "$setup" > "$out/setup"
|