Merge pull request #96318 from matthewbauer/provide-patchelf-in-native-stdenv
stdenv/native: provide patchelf on linux
This commit is contained in:
commit
989b403c7f
@ -57,7 +57,7 @@ let
|
|||||||
suffixSalt = replaceStrings ["-" "."] ["_" "_"] targetPlatform.config;
|
suffixSalt = replaceStrings ["-" "."] ["_" "_"] targetPlatform.config;
|
||||||
|
|
||||||
expand-response-params =
|
expand-response-params =
|
||||||
if buildPackages.stdenv.hasCC && buildPackages.stdenv.cc != "/dev/null"
|
if (buildPackages.stdenv.hasCC or false) && buildPackages.stdenv.cc != "/dev/null"
|
||||||
then import ../expand-response-params { inherit (buildPackages) stdenv; }
|
then import ../expand-response-params { inherit (buildPackages) stdenv; }
|
||||||
else "";
|
else "";
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ let
|
|||||||
# A function that builds a "native" stdenv (one that uses tools in
|
# A function that builds a "native" stdenv (one that uses tools in
|
||||||
# /usr etc.).
|
# /usr etc.).
|
||||||
makeStdenv =
|
makeStdenv =
|
||||||
{ cc, fetchurl, extraPath ? [], overrides ? (self: super: { }) }:
|
{ cc, fetchurl, extraPath ? [], overrides ? (self: super: { }), extraNativeBuildInputs ? [] }:
|
||||||
|
|
||||||
import ../generic {
|
import ../generic {
|
||||||
buildPlatform = localSystem;
|
buildPlatform = localSystem;
|
||||||
@ -94,10 +94,10 @@ let
|
|||||||
if system == "x86_64-cygwin" then prehookCygwin else
|
if system == "x86_64-cygwin" then prehookCygwin else
|
||||||
prehookBase;
|
prehookBase;
|
||||||
|
|
||||||
extraNativeBuildInputs =
|
extraNativeBuildInputs = extraNativeBuildInputs ++
|
||||||
if system == "i686-cygwin" then extraNativeBuildInputsCygwin else
|
(if system == "i686-cygwin" then extraNativeBuildInputsCygwin else
|
||||||
if system == "x86_64-cygwin" then extraNativeBuildInputsCygwin else
|
if system == "x86_64-cygwin" then extraNativeBuildInputsCygwin else
|
||||||
[];
|
[]);
|
||||||
|
|
||||||
initialPath = extraPath ++ path;
|
initialPath = extraPath ++ path;
|
||||||
|
|
||||||
@ -163,6 +163,7 @@ in
|
|||||||
inherit (prevStage.stdenv) cc fetchurl;
|
inherit (prevStage.stdenv) cc fetchurl;
|
||||||
extraPath = [ prevStage.xz ];
|
extraPath = [ prevStage.xz ];
|
||||||
overrides = self: super: { inherit (prevStage) xz; };
|
overrides = self: super: { inherit (prevStage) xz; };
|
||||||
|
extraNativeBuildInputs = if localSystem.isLinux then [ prevStage.patchelf ] else [];
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user