diff options
author | sternenseemann <sternenseemann@systemli.org> | 2022-02-25 21:15:57 +0100 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2022-02-25 21:15:57 +0100 |
commit | 1aa02b5c3802100dfba899dc63d143521c761b0d (patch) | |
tree | e1f5f617c839fa8e03e903ef0451241b0985f838 /pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix | |
parent | b4e20523649a53d9e5ea311eeb050132b0ffe879 (diff) | |
download | nixlib-1aa02b5c3802100dfba899dc63d143521c761b0d.tar nixlib-1aa02b5c3802100dfba899dc63d143521c761b0d.tar.gz nixlib-1aa02b5c3802100dfba899dc63d143521c761b0d.tar.bz2 nixlib-1aa02b5c3802100dfba899dc63d143521c761b0d.tar.lz nixlib-1aa02b5c3802100dfba899dc63d143521c761b0d.tar.xz nixlib-1aa02b5c3802100dfba899dc63d143521c761b0d.tar.zst nixlib-1aa02b5c3802100dfba899dc63d143521c761b0d.zip |
haskell.packages.ghc8{107,84}.OneTuple: provide hashable
We need to manually simulate the following conditional in the cabal file: if impl(ghc >=9.0) build-depends: ghc-prim else build-depends: hashable >=1.3.5.0 && <1.5
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix index 9257ebb1a308..2db51bbbfc4e 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix @@ -142,4 +142,9 @@ self: super: { # https://github.com/haskell/haskell-language-server/issues/2728 hls-hlint-plugin = null; }); + + # OneTuple needs hashable instead of ghc-prim for GHC < 9 + OneTuple = super.OneTuple.override { + ghc-prim = self.hashable; + }; } |