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 | 40b197d6f0fa5d6f00d02b70d0f820862ae01c25 (patch) | |
tree | 6f1cb5e8abf44908795bc0f397b75a650a71121a /tv/5pkgs/haskell | |
parent | a0fa20e762c73dca1ab494f004b2d56d6f1e8188 (diff) |
haskell overrides: admit old overrides
Diffstat (limited to 'tv/5pkgs/haskell')
-rw-r--r-- | tv/5pkgs/haskell/default.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tv/5pkgs/haskell/default.nix b/tv/5pkgs/haskell/default.nix index fcede2f..33fd250 100644 --- a/tv/5pkgs/haskell/default.nix +++ b/tv/5pkgs/haskell/default.nix @@ -10,11 +10,15 @@ 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; + }); } |