nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

haskell.compiler.ghc92*: backport Cabal bugfix for Paths_ modules

There is a code generation bug in Cabal-3.6.3.0. For packages configured with
--enable-relocatable, Cabal would generate code that doesn't compile.

There isn't an upstream issue, but the issue is described in the commit that
fixed it:
https://github.com/haskell/cabal/commit/6c796218c92f93c95e94d5ec2d077f6956f68e98

It was fixed in Cabal-3.8.*
Backport the fix to the Cabal library that ships with ghc-9.2.4

Co-authored-by: sternenseemann <sternenseemann@systemli.org>

Closes #200063.

authored by

Kyle Butt
sternenseemann
and committed by
sternenseemann
3d851b64 1a14b05a

+16
+8
pkgs/development/compilers/ghc/9.2.4.nix
··· 194 194 extraPrefix = "utils/haddock/"; 195 195 stripLen = 1; 196 196 }) 197 + # Don't generate code that doesn't compile when --enable-relocatable is passed to Setup.hs 198 + # Can be removed if the Cabal library included with ghc backports the linked fix 199 + (fetchpatch { 200 + url = "https://github.com/haskell/cabal/commit/6c796218c92f93c95e94d5ec2d077f6956f68e98.patch"; 201 + stripLen = 1; 202 + extraPrefix = "libraries/Cabal/"; 203 + sha256 = "sha256-yRQ6YmMiwBwiYseC5BsrEtDgFbWvst+maGgDtdD0vAY="; 204 + }) 197 205 ]; 198 206 199 207 postPatch = "patchShebangs .";
+8
pkgs/development/compilers/ghc/9.2.5.nix
··· 194 194 extraPrefix = "utils/haddock/"; 195 195 stripLen = 1; 196 196 }) 197 + # Don't generate code that doesn't compile when --enable-relocatable is passed to Setup.hs 198 + # Can be removed if the Cabal library included with ghc backports the linked fix 199 + (fetchpatch { 200 + url = "https://github.com/haskell/cabal/commit/6c796218c92f93c95e94d5ec2d077f6956f68e98.patch"; 201 + stripLen = 1; 202 + extraPrefix = "libraries/Cabal/"; 203 + sha256 = "sha256-yRQ6YmMiwBwiYseC5BsrEtDgFbWvst+maGgDtdD0vAY="; 204 + }) 197 205 ]; 198 206 199 207 postPatch = "patchShebangs .";