From 68a04c1195ba8087f0f57c5b9017b38a02a8c6c1 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Wed, 2 Nov 2016 18:35:03 -0400 Subject: [PATCH] top-level: Inline topLevelArugments, and make pkg named arg for stdenv [Trying my best to indent properly while avoiding excessive drift] --- pkgs/top-level/default.nix | 13 +++++++------ pkgs/top-level/stdenv.nix | 3 +-- 2 files changed, 8 insertions(+), 8 deletions(-) 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 {