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
self: super:
{
haskell.packages = mapAttrs (_: pkgs: pkgs.override {
inherit overrides;
}) super.haskell.packages;
haskell = super.haskell // {
packages = mapAttrs (name: value:
if hasAttr "override" value
then value.override { inherit overrides; }
else value
) super.haskell.packages;
};
haskellPackages = super.haskellPackages.override {
inherit overrides;
};