forked from mirrors/nixpkgs
* 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" ];
|
||||
setupNew = substituteAll {
|
||||
src = ../../stdenv/generic/setup.sh;
|
||||
preHook="";
|
||||
postHook="";
|
||||
initialPath= (import ../../stdenv/common-path.nix) { inherit pkgs; };
|
||||
gcc = stdenv.gcc;
|
||||
};
|
||||
|
|
|
@ -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" \
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue