haskell: fix overriding haskellPackages using haskell.packageOverrides

Tested using:

$ nix-build -E '(import ./. { overlays = [(final : previous : { haskell = previous.haskell // { packageOverrides = self : super : {blablabla = super.scientific;};};})];}).haskellPackages.blablabla'
/nix/store/s75xbfhn88187jk8238h4ii2ap9kg4m2-scientific-0.3.6.2
This commit is contained in:
Bas van Dijk 2018-06-10 12:32:20 +02:00
parent f0bfa9de83
commit a601787e55

View file

@ -6460,7 +6460,7 @@ with pkgs;
haskell = callPackage ./haskell-packages.nix { };
haskellPackages = haskell.packages.ghc822.override {
overrides = config.haskellPackageOverrides or (self: super: {});
overrides = config.haskellPackageOverrides or haskell.packageOverrides;
};
inherit (haskellPackages) ghc;