diff options
author | Rodney Lorrimar <dev@rodney.id.au> | 2024-01-11 15:50:56 +0800 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2024-01-11 14:49:29 +0100 |
commit | 8ecc123cf0d206dffdf79c3c06cdc9460b987557 (patch) | |
tree | 682bface5806ae660e83b7a7f361a7df33d70321 /pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix | |
parent | f805a394487072d8ce1ed2d530c7519a895abd3a (diff) |
haskell.packages.*.{these,OneTuple}: provide compat pkg where needed
Co-authored-by: sternenseemann <sternenseemann@systemli.org>
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix index 11a9d8a606dc5..48d67fc133ccd 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix @@ -4,6 +4,7 @@ with haskellLib; let inherit (pkgs.stdenv.hostPlatform) isDarwin; + inherit (pkgs) lib; in self: super: { @@ -128,8 +129,13 @@ self: super: { # Requires GHC < 9.4 ghc-source-gen = doDistribute (unmarkBroken super.ghc-source-gen); - # Needs compat library for GHC < 9.6 - indexed-traversable = addBuildDepends [ - self.foldable1-classes-compat - ] super.indexed-traversable; + # Packages which need compat library for GHC < 9.6 + inherit + (lib.mapAttrs + (_: addBuildDepends [ self.foldable1-classes-compat ]) + super) + indexed-traversable + OneTuple + these + ; } |