diff options
author | tv <tv@krebsco.de> | 2022-09-13 21:22:15 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2022-09-13 21:22:41 +0200 |
commit | 5de8b8530cb436118db192d90824bc6efdfda18a (patch) | |
tree | 870c36ad8de849b39405188537a6355f876922e0 /krebs/5pkgs/haskell/default.nix | |
parent | 4005029bf6caa37d86490cb5d37dca1bc857909d (diff) |
haskell overrides: admit old overrides
Diffstat (limited to 'krebs/5pkgs/haskell/default.nix')
-rw-r--r-- | krebs/5pkgs/haskell/default.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/krebs/5pkgs/haskell/default.nix b/krebs/5pkgs/haskell/default.nix index 98cbcb3b9..7e9ee7521 100644 --- a/krebs/5pkgs/haskell/default.nix +++ b/krebs/5pkgs/haskell/default.nix @@ -8,11 +8,13 @@ in haskell = super.haskell // { packages = mapAttrs (name: value: if hasAttr "override" value - then value.override { inherit overrides; } + then value.override (old: { + overrides = composeExtensions (old.overrides or (_: _: {})) overrides; + }) else value ) super.haskell.packages; }; - haskellPackages = super.haskellPackages.override { - inherit overrides; - }; + haskellPackages = super.haskellPackages.override (old: { + overrides = composeExtensions (old.overrides or (_: _: {})) overrides; + }); } |