diff options
author | tv <tv@krebsco.de> | 2017-08-10 14:02:12 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-08-10 14:08:40 +0200 |
commit | 585092f686f82316911641c9eeecd3843e9031f0 (patch) | |
tree | 45f0596400c8384942ecec4be76d78789871a052 /krebs/5pkgs/haskell/default.nix | |
parent | 09a7b7e43e5481a29d8d03ee68788dd6df6141a3 (diff) |
haskell overlay: only override packages
Fixes a regression introduced by a4c61396ed53bb640b8b557d80b3b283264ccd1a.
Diffstat (limited to 'krebs/5pkgs/haskell/default.nix')
-rw-r--r-- | krebs/5pkgs/haskell/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/krebs/5pkgs/haskell/default.nix b/krebs/5pkgs/haskell/default.nix index 64c5f9257..7cdf65ea5 100644 --- a/krebs/5pkgs/haskell/default.nix +++ b/krebs/5pkgs/haskell/default.nix @@ -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; }; |