* 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:
Eelco Dolstra 2012-01-19 15:39:12 +00:00
parent b31df26cea
commit 6208059079
4 changed files with 3 additions and 9 deletions

View file

@ -48,8 +48,6 @@ mkDerivation {
phases = [ "buildPhase" ];
setupNew = substituteAll {
src = ../../stdenv/generic/setup.sh;
preHook="";
postHook="";
initialPath= (import ../../stdenv/common-path.nix) { inherit pkgs; };
gcc = stdenv.gcc;
};

View file

@ -8,7 +8,6 @@ mkdir $out
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" \

View file

@ -1,4 +1,4 @@
{ system, name, preHook ? null, postHook ? null, initialPath, gcc, shell
{ system, name, preHook ? null, initialPath, gcc, shell
, extraAttrs ? {}, overrides ? (pkgs: {})
, # The `fetchurl' to use for downloading curl and its dependencies
@ -24,7 +24,7 @@ let
setup = setupScript;
inherit preHook postHook initialPath gcc shell;
inherit preHook initialPath gcc shell;
propagatedUserEnvPkgs = [gcc] ++
lib.filter lib.isDerivation initialPath;

View file

@ -102,9 +102,7 @@ fi
# Execute the pre-hook.
export SHELL=@shell@
if [ -z "$shell" ]; then
export shell=@shell@
fi
if [ -z "$shell" ]; then export shell=@shell@; fi
if [ -n "@preHook@" ]; then source @preHook@; fi
runHook preHook
@ -844,7 +842,6 @@ genericBuild() {
# Execute the post-hook.
if test -n "@postHook@"; then source @postHook@; fi
runHook postHook