* The postHook substitution is not used anywhere, so get rid of it.
svn path=/nixpkgs/branches/stdenv-updates/; revision=31702
This commit is contained in:
parent
b31df26cea
commit
6208059079
@ -48,8 +48,6 @@ mkDerivation {
|
|||||||
phases = [ "buildPhase" ];
|
phases = [ "buildPhase" ];
|
||||||
setupNew = substituteAll {
|
setupNew = substituteAll {
|
||||||
src = ../../stdenv/generic/setup.sh;
|
src = ../../stdenv/generic/setup.sh;
|
||||||
preHook="";
|
|
||||||
postHook="";
|
|
||||||
initialPath= (import ../../stdenv/common-path.nix) { inherit pkgs; };
|
initialPath= (import ../../stdenv/common-path.nix) { inherit pkgs; };
|
||||||
gcc = stdenv.gcc;
|
gcc = stdenv.gcc;
|
||||||
};
|
};
|
||||||
|
@ -8,7 +8,6 @@ mkdir $out
|
|||||||
|
|
||||||
sed \
|
sed \
|
||||||
-e "s^@preHook@^$preHook^g" \
|
-e "s^@preHook@^$preHook^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" \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ system, name, preHook ? null, postHook ? null, initialPath, gcc, shell
|
{ system, name, preHook ? null, initialPath, gcc, shell
|
||||||
, 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
|
||||||
@ -24,7 +24,7 @@ let
|
|||||||
|
|
||||||
setup = setupScript;
|
setup = setupScript;
|
||||||
|
|
||||||
inherit preHook postHook initialPath gcc shell;
|
inherit preHook initialPath gcc shell;
|
||||||
|
|
||||||
propagatedUserEnvPkgs = [gcc] ++
|
propagatedUserEnvPkgs = [gcc] ++
|
||||||
lib.filter lib.isDerivation initialPath;
|
lib.filter lib.isDerivation initialPath;
|
||||||
|
@ -102,9 +102,7 @@ fi
|
|||||||
|
|
||||||
# Execute the pre-hook.
|
# Execute the pre-hook.
|
||||||
export SHELL=@shell@
|
export SHELL=@shell@
|
||||||
if [ -z "$shell" ]; then
|
if [ -z "$shell" ]; then export shell=@shell@; fi
|
||||||
export shell=@shell@
|
|
||||||
fi
|
|
||||||
if [ -n "@preHook@" ]; then source @preHook@; fi
|
if [ -n "@preHook@" ]; then source @preHook@; fi
|
||||||
runHook preHook
|
runHook preHook
|
||||||
|
|
||||||
@ -844,7 +842,6 @@ genericBuild() {
|
|||||||
|
|
||||||
|
|
||||||
# Execute the post-hook.
|
# Execute the post-hook.
|
||||||
if test -n "@postHook@"; then source @postHook@; fi
|
|
||||||
runHook postHook
|
runHook postHook
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user