Merge pull request #183967 from Ericson2314/small-stdenv-cleanup

stdenv: Two small cleanups
This commit is contained in:
Robert Hensing 2022-08-01 14:37:42 +02:00 committed by GitHub
commit 12a060dbbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 26 deletions

View File

@ -73,7 +73,7 @@ mkDerivation {
};
buildPhase = let
initialPath = import ../../stdenv/common-path.nix { inherit pkgs; };
initialPath = import ../../stdenv/generic/common-path.nix { inherit pkgs; };
in ''
set -x
mkdir -p "$out/dev-envs" "$out/nix-support" "$out/bin"

View File

@ -683,7 +683,7 @@ rec {
__stdenvImpureHostDeps = commonImpureHostDeps;
__extraImpureHostDeps = commonImpureHostDeps;
initialPath = import ../common-path.nix { inherit pkgs; };
initialPath = import ../generic/common-path.nix { inherit pkgs; };
shell = "${pkgs.bash}/bin/bash";
cc = pkgs."${finalLlvmPackages}".libcxxClang;

View File

@ -38,28 +38,10 @@ let
in
if crossSystem != localSystem || crossOverlays != [] then stagesCross
else if config ? replaceStdenv then stagesCustom
else { # switch
i686-linux = stagesLinux;
x86_64-linux = stagesLinux;
armv5tel-linux = stagesLinux;
armv6l-linux = stagesLinux;
armv6m-linux = stagesLinux;
armv7a-linux = stagesLinux;
armv7l-linux = stagesLinux;
armv7r-linux = stagesLinux;
armv7m-linux = stagesLinux;
armv8a-linux = stagesLinux;
armv8r-linux = stagesLinux;
armv8m-linux = stagesLinux;
aarch64-linux = stagesLinux;
mipsel-linux = stagesLinux;
mips64el-linux = stagesLinux;
powerpc-linux = /* stagesLinux */ stagesNative;
powerpc64-linux = stagesLinux;
powerpc64le-linux = stagesLinux;
riscv64-linux = stagesLinux;
x86_64-darwin = stagesDarwin;
aarch64-darwin = stagesDarwin;
else if localSystem.isLinux then stagesLinux
else if localSystem.isDarwin then stagesDarwin
else # misc special cases
{ # switch
x86_64-solaris = stagesNix;
i686-cygwin = stagesNative;
x86_64-cygwin = stagesNative;

View File

@ -397,7 +397,7 @@ in
preHook = commonPreHook;
initialPath =
((import ../common-path.nix) {pkgs = prevStage;});
((import ../generic/common-path.nix) {pkgs = prevStage;});
extraNativeBuildInputs = [ prevStage.patchelf ] ++
# Many tarballs come with obsolete config.sub/config.guess that don't recognize aarch64.

View File

@ -21,7 +21,7 @@ bootStages ++ [
export NIX_IGNORE_LD_THROUGH_GCC=1
'';
initialPath = (import ../common-path.nix) { pkgs = prevStage; };
initialPath = (import ../generic/common-path.nix) { pkgs = prevStage; };
cc = import ../../build-support/cc-wrapper {
inherit lib;