top-level: Inline topLevelArugments, and make pkg named arg for stdenv
[Trying my best to indent properly while avoiding excessive drift]
This commit is contained in:
parent
05977b236b
commit
68a04c1195
@ -56,10 +56,6 @@ let
|
|||||||
platform = if platform_ != null then platform_
|
platform = if platform_ != null then platform_
|
||||||
else config.platform or platformAuto;
|
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.
|
# 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
|
# (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
|
# 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;
|
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:
|
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;
|
in res;
|
||||||
|
|
||||||
aliases = self: super: import ./aliases.nix super;
|
aliases = self: super: import ./aliases.nix super;
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
{ system, bootStdenv, crossSystem, config, platform, lib, nixpkgsFun, ... }:
|
{ system, bootStdenv, crossSystem, config, platform, lib, nixpkgsFun, pkgs, ... }:
|
||||||
pkgs:
|
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
allStdenvs = import ../stdenv {
|
allStdenvs = import ../stdenv {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user