diff --git a/pkgs/top-level/default.nix b/pkgs/top-level/default.nix index 012db1e393b4..67577aabaa4d 100644 --- a/pkgs/top-level/default.nix +++ b/pkgs/top-level/default.nix @@ -56,10 +56,6 @@ let platform = if platform_ != null then platform_ else config.platform or platformAuto; - topLevelArguments = { - inherit system bootStdenv noSysDirs config crossSystem platform lib nixpkgsFun; - }; - # A few packages make a new package set to draw their dependencies from. # (Currently to get a cross tool chain, or forced-i686 package.) Rather than # give `all-packages.nix` all the arguments to this function, even ones that @@ -81,10 +77,15 @@ let inherit lib; inherit (self) stdenv stdenvNoCC; inherit (self.xorg) lndir; }; - stdenvDefault = self: super: (import ./stdenv.nix topLevelArguments) pkgs; + stdenvDefault = self: super: + import ./stdenv.nix { + inherit system bootStdenv noSysDirs config crossSystem platform lib nixpkgsFun pkgs; + }; allPackages = self: super: - let res = import ./all-packages.nix topLevelArguments res self; + let res = import ./all-packages.nix + { inherit system bootStdenv noSysDirs config crossSystem platform lib nixpkgsFun; } + res self; in res; aliases = self: super: import ./aliases.nix super; diff --git a/pkgs/top-level/stdenv.nix b/pkgs/top-level/stdenv.nix index c36b0fed091a..7efbfc36b1fd 100644 --- a/pkgs/top-level/stdenv.nix +++ b/pkgs/top-level/stdenv.nix @@ -1,5 +1,4 @@ -{ system, bootStdenv, crossSystem, config, platform, lib, nixpkgsFun, ... }: -pkgs: +{ system, bootStdenv, crossSystem, config, platform, lib, nixpkgsFun, pkgs, ... }: rec { allStdenvs = import ../stdenv {