Move stdenvAdapaters attribute from all-packages.nix into the stdenvAdapters of the top-level.

This commit is contained in:
Nicolas B. Pierron 2016-03-20 17:50:06 +00:00
parent ff72cf185e
commit 01693ac154
2 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ system, bootStdenv, noSysDirs, gccWithCC, gccWithProfiling
, config, crossSystem, platform, lib
, pkgsWithOverrides, stdenvAdapters
, pkgsWithOverrides
, ... }:
self: pkgs:
@ -74,7 +74,7 @@ in
### Helper functions.
inherit lib config stdenvAdapters;
inherit lib config;
inherit (lib) lowPrio hiPrio appendToName makeOverridable;
inherit (misc) versionedDerivation;

View File

@ -114,14 +114,16 @@ let
pkgsWithOverrides = overrider:
let
stdenvAdapters =
import ../stdenv/adapters.nix pkgs;
let res = import ../stdenv/adapters.nix pkgs; in res // {
stdenvAdapters = res;
};
trivialBuilders =
(import ../build-support/trivial-builders.nix { inherit lib; inherit (pkgs) stdenv; inherit (pkgs.xorg) lndir; });
stdenvDefault = (import ./stdenv.nix topLevelArguments) {} pkgs;
selfArgs = topLevelArguments // { inherit pkgsWithOverrides stdenvAdapters; };
selfArgs = topLevelArguments // { inherit pkgsWithOverrides; };
self = (import ./all-packages.nix selfArgs) self pkgs;
aliases = import ./aliases.nix self;