diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 69192cd6d3a9..a5a1f17d75bb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5,9 +5,7 @@ * to merges. Please use the full-text search of your editor. ;) * Hint: ### starts category names. */ -{ system, noSysDirs, config, crossSystem, platform, lib -, nixpkgsFun -}: +{ lib, nixpkgsFun, noSysDirs, config}: self: pkgs: with pkgs; @@ -18,9 +16,6 @@ in { - # Make some arguments passed to all-packages.nix available - inherit system platform; - # Allow callPackage to fill in the pkgs argument inherit pkgs; diff --git a/pkgs/top-level/stage.nix b/pkgs/top-level/stage.nix index f6f11b439800..ebc6473e4254 100644 --- a/pkgs/top-level/stage.nix +++ b/pkgs/top-level/stage.nix @@ -47,12 +47,15 @@ let inherit lib; inherit (self) stdenv stdenvNoCC; inherit (self.xorg) lndir; }; - stdenvDefault = self: super: - { stdenv = stdenv // { inherit platform; }; }; + stdenvBootstappingAndPlatforms = self: super: { + stdenv = stdenv // { inherit platform; }; + inherit + system platform crossSystem; + }; allPackages = self: super: let res = import ./all-packages.nix - { inherit system noSysDirs config crossSystem platform lib nixpkgsFun; } + { inherit lib nixpkgsFun noSysDirs config; } res self; in res; @@ -77,7 +80,7 @@ let # The complete chain of package set builders, applied from top to bottom toFix = lib.foldl' (lib.flip lib.extends) (self: {}) [ - stdenvDefault + stdenvBootstappingAndPlatforms stdenvAdapters trivialBuilders allPackages