summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/haskell
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-08-10 14:23:12 +0200
committerlassulus <lassulus@lassul.us>2017-08-10 14:23:12 +0200
commit6e1ecc5c57c0ec33e62d9dd77e6f59e71d04800c (patch)
treebf14b514a1fddddf344ee3f94d39a4e8f7dac2d8 /krebs/5pkgs/haskell
parent2bf77c0cc0a10ad2a7a5be07a6aa2a36af4742fb (diff)
parent585092f686f82316911641c9eeecd3843e9031f0 (diff)
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'krebs/5pkgs/haskell')
-rw-r--r--krebs/5pkgs/haskell/default.nix10
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;
};