stdenv: correctly make stdenv.system refer to the host platform

This was supposed to be done in 773233ca77, but was not due to a small
mistake.
This commit is contained in:
Ben Wolsieffer 2020-07-11 16:06:08 -04:00
parent 8d05772134
commit 18c8866f77

View File

@ -138,8 +138,11 @@ let
is32bit is64bit
isAarch32 isAarch64 isMips isBigEndian;
# The derivation's `system` is `buildPlatform.system`.
inherit (buildPlatform) system;
# Override `system` so that packages can get the system of the host
# 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 lib config stdenv;