* Get rid of params1-5, they're obsolete.
svn path=/nixpkgs/branches/stdenv-updates/; revision=31700
This commit is contained in:
parent
26affd7238
commit
0d71e75222
@ -1,32 +1,17 @@
|
|||||||
p1=$param1
|
|
||||||
p2=$param2
|
|
||||||
p3=$param3
|
|
||||||
p4=$param4
|
|
||||||
p5=$param5
|
|
||||||
_preHook="$preHook"
|
|
||||||
_postHook="$postHook"
|
|
||||||
preHook=
|
|
||||||
postHook=
|
|
||||||
|
|
||||||
export PATH=
|
export PATH=
|
||||||
for i in $initialPath; do
|
for i in $initialPath; do
|
||||||
if test "$i" = /; then i=; fi
|
if [ "$i" = / ]; then i=; fi
|
||||||
PATH=$PATH${PATH:+:}$i/bin
|
PATH=$PATH${PATH:+:}$i/bin
|
||||||
done
|
done
|
||||||
|
|
||||||
mkdir $out
|
mkdir $out
|
||||||
|
|
||||||
sed \
|
sed \
|
||||||
-e "s^@preHook@^$_preHook^g" \
|
-e "s^@preHook@^$preHook^g" \
|
||||||
-e "s^@postHook@^$_postHook^g" \
|
-e "s^@postHook@^$postHook^g" \
|
||||||
-e "s^@initialPath@^$initialPath^g" \
|
-e "s^@initialPath@^$initialPath^g" \
|
||||||
-e "s^@gcc@^$gcc^g" \
|
-e "s^@gcc@^$gcc^g" \
|
||||||
-e "s^@shell@^$shell^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"
|
< "$setup" > "$out/setup"
|
||||||
|
|
||||||
# Allow the user to install stdenv using nix-env and get the packages
|
# Allow the user to install stdenv using nix-env and get the packages
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
{ system, name, preHook ? null, postHook ? null, initialPath, gcc, shell
|
{ system, name, preHook ? null, postHook ? null, initialPath, gcc, shell
|
||||||
, param1 ? "", param2 ? "", param3 ? "", param4 ? "", param5 ? ""
|
|
||||||
, extraAttrs ? {}, overrides ? (pkgs: {})
|
, extraAttrs ? {}, overrides ? (pkgs: {})
|
||||||
|
|
||||||
, # The `fetchurl' to use for downloading curl and its dependencies
|
, # The `fetchurl' to use for downloading curl and its dependencies
|
||||||
@ -27,9 +26,6 @@ let
|
|||||||
|
|
||||||
inherit preHook postHook initialPath gcc shell;
|
inherit preHook postHook initialPath gcc shell;
|
||||||
|
|
||||||
# TODO: make this more elegant.
|
|
||||||
inherit param1 param2 param3 param4 param5;
|
|
||||||
|
|
||||||
propagatedUserEnvPkgs = [gcc] ++
|
propagatedUserEnvPkgs = [gcc] ++
|
||||||
lib.filter lib.isDerivation initialPath;
|
lib.filter lib.isDerivation initialPath;
|
||||||
}
|
}
|
||||||
|
@ -106,20 +106,15 @@ fi
|
|||||||
|
|
||||||
# Execute the pre-hook.
|
# Execute the pre-hook.
|
||||||
export SHELL=@shell@
|
export SHELL=@shell@
|
||||||
if test -z "$shell"; then
|
if [ -z "$shell" ]; then
|
||||||
export shell=@shell@
|
export shell=@shell@
|
||||||
fi
|
fi
|
||||||
param1=@param1@
|
if [ -n "@preHook@" ]; then source @preHook@; fi
|
||||||
param2=@param2@
|
|
||||||
param3=@param3@
|
|
||||||
param4=@param4@
|
|
||||||
param5=@param5@
|
|
||||||
if test -n "@preHook@"; then source @preHook@; fi
|
|
||||||
runHook preHook
|
runHook preHook
|
||||||
|
|
||||||
|
|
||||||
# Check that the pre-hook initialised SHELL.
|
# Check that the pre-hook initialised SHELL.
|
||||||
if test -z "$SHELL"; then echo "SHELL not set"; exit 1; fi
|
if [ -z "$SHELL" ]; then echo "SHELL not set"; exit 1; fi
|
||||||
|
|
||||||
|
|
||||||
# Hack: run gcc's setup hook.
|
# Hack: run gcc's setup hook.
|
||||||
|
@ -82,7 +82,6 @@ rec {
|
|||||||
import ../generic {
|
import ../generic {
|
||||||
inherit system;
|
inherit system;
|
||||||
name = "stdenv-linux-boot";
|
name = "stdenv-linux-boot";
|
||||||
param1 = bootstrapTools;
|
|
||||||
preHook = builtins.toFile "prehook.sh"
|
preHook = builtins.toFile "prehook.sh"
|
||||||
''
|
''
|
||||||
# Don't patch #!/interpreter because it leads to retained
|
# Don't patch #!/interpreter because it leads to retained
|
||||||
|
Loading…
x
Reference in New Issue
Block a user