mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
Revert "Merge pull request #229 from viric/niximpure2-stdenv-updates"
This reverts commite04b17bfba
, reversing changes made to1af2ada7d4
.
This commit is contained in:
parent
095db9fe3f
commit
6fd4f63530
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
@ -270,7 +270,6 @@ elif [ "$NIX_BUILD_CORES" -le 0 ]; then
|
||||
fi
|
||||
export NIX_BUILD_CORES
|
||||
|
||||
@niximpure@
|
||||
|
||||
######################################################################
|
||||
# Misc. helper functions.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user