haskell overlay: only override packages

Fixes a regression introduced by a4c61396ed.
This commit is contained in:
tv 2017-08-10 14:02:12 +02:00
parent 09a7b7e43e
commit 585092f686

View File

@ -11,9 +11,13 @@ let
in in
self: super: self: super:
{ {
haskell.packages = mapAttrs (_: pkgs: pkgs.override { haskell = super.haskell // {
inherit overrides; packages = mapAttrs (name: value:
}) super.haskell.packages; if hasAttr "override" value
then value.override { inherit overrides; }
else value
) super.haskell.packages;
};
haskellPackages = super.haskellPackages.override { haskellPackages = super.haskellPackages.override {
inherit overrides; inherit overrides;
}; };