about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2022-03-16 02:06:15 +0100
committerNaïm Favier <n@monade.li>2022-03-16 02:10:08 +0100
commit0ba189f2d7ba8f6c225fbea2a6b4ba2e037a70b7 (patch)
tree1f2ea714368e4094a75c30108c65c1483ed0596e /pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix
parentbb72482cc3eb6f6604641a246ce26bc8c3dff627 (diff)
downloadnixlib-0ba189f2d7ba8f6c225fbea2a6b4ba2e037a70b7.tar
nixlib-0ba189f2d7ba8f6c225fbea2a6b4ba2e037a70b7.tar.gz
nixlib-0ba189f2d7ba8f6c225fbea2a6b4ba2e037a70b7.tar.bz2
nixlib-0ba189f2d7ba8f6c225fbea2a6b4ba2e037a70b7.tar.lz
nixlib-0ba189f2d7ba8f6c225fbea2a6b4ba2e037a70b7.tar.xz
nixlib-0ba189f2d7ba8f6c225fbea2a6b4ba2e037a70b7.tar.zst
nixlib-0ba189f2d7ba8f6c225fbea2a6b4ba2e037a70b7.zip
haskellPackages.knob: add patch for GHC 9 support
Patch sent to upstream via email, but the package hasn't been updated in
ten years.

Changes:
- IO.seek should now return the new offset so I used modifyMVar instead
  of modifyMVar_
- mkFileHandle now requires a RawIO instance for Device. Since this was
  not the case before and I don't think we need to actually support raw
  IO, I used DeriveAnyClass.
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix
index f36c77d636a7..5912b67e5ae0 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix
@@ -47,6 +47,8 @@ self: super: {
     Cabal = self.Cabal_3_6_3_0;
   });
 
+  knob = appendPatch ./patches/knob-ghc9.patch super.knob;
+
   # Jailbreaks & Version Updates
 
   # This `doJailbreak` can be removed once the following PR is released to Hackage: