Merge pull request #241025 from uri-canva/fix-native

stdenv: fix stagesNative

authored by

Uri Baghin and committed by
GitHub
0275cf0e 5b36eb41

+9 -4
+4 -2
pkgs/development/interpreters/perl/intepreter.nix
··· 195 substituteInPlace "$out"/lib/perl5/*/*/Config_heavy.pl \ 196 --replace "${libcInc}" /no-such-path \ 197 --replace "${ 198 - if stdenv.hasCC then stdenv.cc.cc else "/no-such-path" 199 }" /no-such-path \ 200 - --replace "${stdenv.cc}" /no-such-path \ 201 --replace "$man" /no-such-path 202 '' + lib.optionalString crossCompiling 203 ''
··· 195 substituteInPlace "$out"/lib/perl5/*/*/Config_heavy.pl \ 196 --replace "${libcInc}" /no-such-path \ 197 --replace "${ 198 + if stdenv.hasCC then stdenv.cc else "/no-such-path" 199 }" /no-such-path \ 200 + --replace "${ 201 + if stdenv.hasCC && stdenv.cc.cc != null then stdenv.cc.cc else "/no-such-path" 202 + }" /no-such-path \ 203 --replace "$man" /no-such-path 204 '' + lib.optionalString crossCompiling 205 ''
+5 -2
pkgs/stdenv/native/default.nix
··· 152 inherit config overlays; 153 stdenv = makeStdenv { 154 inherit (prevStage) cc fetchurl; 155 - } // { inherit (prevStage) fetchurl; }; 156 }) 157 158 # Using that, build a stdenv that adds the ‘xz’ command (which most systems ··· 162 stdenv = makeStdenv { 163 inherit (prevStage.stdenv) cc fetchurl; 164 extraPath = [ prevStage.xz ]; 165 - overrides = self: super: { inherit (prevStage) xz; }; 166 extraNativeBuildInputs = if localSystem.isLinux then [ prevStage.patchelf ] else []; 167 }; 168 })
··· 152 inherit config overlays; 153 stdenv = makeStdenv { 154 inherit (prevStage) cc fetchurl; 155 + overrides = prev: final: { inherit (prevStage) fetchurl; }; 156 + } // { 157 + inherit (prevStage) fetchurl; 158 + }; 159 }) 160 161 # Using that, build a stdenv that adds the ‘xz’ command (which most systems ··· 165 stdenv = makeStdenv { 166 inherit (prevStage.stdenv) cc fetchurl; 167 extraPath = [ prevStage.xz ]; 168 + overrides = self: super: { inherit (prevStage) fetchurl xz; }; 169 extraNativeBuildInputs = if localSystem.isLinux then [ prevStage.patchelf ] else []; 170 }; 171 })