Revert "Merge pull request #229 from viric/niximpure2-stdenv-updates"

This reverts commit e04b17bfba, reversing
changes made to 1af2ada7d4.
This commit is contained in:
Eelco Dolstra 2012-12-28 15:46:45 +01:00
parent 095db9fe3f
commit 6fd4f63530
4 changed files with 2 additions and 13 deletions

View File

@ -9,15 +9,9 @@ mkdir $out
echo "$preHook" > $out/setup
cat "$setup" >> $out/setup
if [ "$withNixImpure" == 1 ]; then
# sed wants \&\& for a &&
niximpure='test -f /niximpure/impure.sh \&\& . /niximpure/impure.sh'
fi
sed -e "s^@initialPath@^$initialPath^g" \
-e "s^@gcc@^$gcc^g" \
-e "s^@shell@^$shell^g" \
-e "s^@niximpure@^$niximpure^g" \
< $out/setup > $out/setup.tmp
mv $out/setup.tmp $out/setup

View File

@ -1,6 +1,5 @@
{ system, name ? "stdenv", preHook ? "", initialPath, gcc, shell
, extraAttrs ? {}, overrides ? (pkgs: {})
, withNixImpure ? false
, # The `fetchurl' to use for downloading curl and its dependencies
# (see all-packages.nix).
@ -27,7 +26,7 @@ let
setup = setupScript;
inherit preHook initialPath gcc shell withNixImpure;
inherit preHook initialPath gcc shell;
propagatedUserEnvPkgs = [gcc] ++
lib.filter lib.isDerivation initialPath;

View File

@ -270,7 +270,6 @@ elif [ "$NIX_BUILD_CORES" -le 0 ]; then
fi
export NIX_BUILD_CORES
@niximpure@
######################################################################
# Misc. helper functions.

View File

@ -94,7 +94,6 @@ rec {
initialPath = [bootstrapTools] ++ extraPath;
fetchurlBoot = fetchurl;
inherit gcc;
withNixImpure = if platform ? nixImpure then platform.nixImpure else false;
# Having the proper 'platform' in all the stdenvs allows getting proper
# linuxHeaders for example.
extraAttrs = extraAttrs // { inherit platform; };
@ -265,7 +264,7 @@ rec {
inherit system;
preHook = commonPreHook;
initialPath =
((import ../common-path.nix) {pkgs = stdenvLinuxBoot4Pkgs;})
++ [stdenvLinuxBoot4Pkgs.patchelf];
@ -282,8 +281,6 @@ rec {
shell = stdenvLinuxBoot4Pkgs.bash + "/bin/bash";
fetchurlBoot = fetchurl;
withNixImpure = if platform ? nixImpure then platform.nixImpure else false;
extraAttrs = {
inherit (stdenvLinuxBoot3Pkgs) glibc;