···8383 # compiling toolchains and 32-bit packages on x86_64). In both those cases we
8484 # want the provided non-native `localSystem` argument to affect the stdenv
8585 # chosen.
8686+ #
8787+ # NB!!! This thing gets its `config` argument from `args`, i.e. it's actually
8888+ # `config0`. It is important to keep it to `config0` format (as opposed to the
8989+ # result of `evalModules`, i.e. the `config` variable above) throughout all
9090+ # nixpkgs evaluations since the above function `config0 -> config` implemented
9191+ # via `evalModules` is not idempotent. In other words, if you add `config` to
9292+ # `newArgs`, expect strange very hard to debug errors! (Yes, I'm speaking from
9393+ # experience here.)
8694 nixpkgsFun = newArgs: import ./. (args // newArgs);
87958896 # Partially apply some arguments for building bootstraping stage pkgs
-2
pkgs/top-level/stage.nix
···135135 # default GNU libc on Linux systems. Non-Linux systems are not
136136 # supported.
137137 pkgsMusl = if stdenv.hostPlatform.isLinux then nixpkgsFun {
138138- inherit overlays config;
139138 ${if stdenv.hostPlatform == stdenv.buildPlatform
140139 then "localSystem" else "crossSystem"} = {
141140 parsed = stdenv.hostPlatform.parsed // {
···152151 # All packages built for i686 Linux.
153152 # Used by wine, firefox with debugging version of Flash, ...
154153 pkgsi686Linux = if stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86 then nixpkgsFun {
155155- inherit overlays config;
156154 ${if stdenv.hostPlatform == stdenv.buildPlatform
157155 then "localSystem" else "crossSystem"} = {
158156 parsed = stdenv.hostPlatform.parsed // {