Merge pull request #92961 from lopsided98/stdenv-system-fix
stdenv: correctly make `stdenv.system` refer to the host platform
This commit is contained in:
@@ -138,8 +138,11 @@ let
|
|||||||
is32bit is64bit
|
is32bit is64bit
|
||||||
isAarch32 isAarch64 isMips isBigEndian;
|
isAarch32 isAarch64 isMips isBigEndian;
|
||||||
|
|
||||||
# The derivation's `system` is `buildPlatform.system`.
|
# Override `system` so that packages can get the system of the host
|
||||||
inherit (buildPlatform) system;
|
# platform through `stdenv.system`. `system` is originally set to the
|
||||||
|
# build platform within the derivation above so that Nix directs the build
|
||||||
|
# to correct type of machine.
|
||||||
|
inherit (hostPlatform) system;
|
||||||
|
|
||||||
inherit (import ./make-derivation.nix {
|
inherit (import ./make-derivation.nix {
|
||||||
inherit lib config stdenv;
|
inherit lib config stdenv;
|
||||||
|
|||||||
Reference in New Issue
Block a user