Inline pkgsFun in pkgsWithOverrides.

This commit is contained in:
Nicolas B. Pierron 2016-03-20 16:33:46 +00:00
parent ad31783405
commit 335a969d45

View file

@ -112,18 +112,6 @@ let
# returned by the `overrider' function (see above). Warning: this
# function is very expensive!
pkgsWithOverrides = overrider:
let
# The un-overriden packages, passed to `overrider'.
pkgs_6 = pkgsFun pkgs;
pkgs_7 = pkgs_6 // overrider pkgs pkgs_6;
# The overriden, final packages.
pkgs = pkgs_7 // stdenvOverrides pkgs_6;
in pkgs;
# The package compositions. Yes, this isn't properly indented.
pkgsFun = pkgs:
let
# Helper functions that are exported through `pkgs'.
helperFunctions =
@ -140,8 +128,13 @@ let
aliases = import ./aliases.nix self;
in
helperFunctions // stdenvDefault // self // aliases;
pkgs_6 = helperFunctions // stdenvDefault // self // aliases;
pkgs_7 = pkgs_6 // overrider pkgs pkgs_6;
# The overriden, final packages.
pkgs = pkgs_7 // stdenvOverrides pkgs_6;
in pkgs;
in
pkgs