From 585092f686f82316911641c9eeecd3843e9031f0 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 10 Aug 2017 14:02:12 +0200 Subject: haskell overlay: only override packages Fixes a regression introduced by a4c61396ed53bb640b8b557d80b3b283264ccd1a. --- krebs/5pkgs/haskell/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'krebs/5pkgs/haskell') 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; }; -- cgit v1.2.3