haskellPackages: make configuration-{nix,common}.nix configurable

The motivation is to be able to get rid of common configuration
when initial packages differs since common configuration assumes
a very specific version set.

cc @jmitchell @peti
This commit is contained in:
Domen Kožar 2017-06-22 13:24:11 +02:00
parent 3d52203ab2
commit bb9e23837a
No known key found for this signature in database
GPG Key ID: C2FFBCAFD2C24246

View File

@ -3,6 +3,8 @@
, packageSetConfig ? (self: super: {})
, overrides ? (self: super: {})
, initialPackages ? import ./hackage-packages.nix
, configurationCommon ? import ./configuration-common.nix
, configurationNix ? import ./configuration-nix.nix
}:
let
@ -15,8 +17,8 @@ let
inherit ghc extensible-self;
};
commonConfiguration = import ./configuration-common.nix { inherit pkgs; };
nixConfiguration = import ./configuration-nix.nix { inherit pkgs; };
commonConfiguration = configurationCommon { inherit pkgs; };
nixConfiguration = configurationNix { inherit pkgs; };
extensible-self = makeExtensible
(extends overrides