ghc8107-ghc923: patch haddock to generate correct source links

Previously links to external modules were jacked because haddock was
doing them wrong. I fixed this upstream in early May 2022 but it's not
out yet.

+26
+8
pkgs/development/compilers/ghc/8.10.7.nix
··· 191 # when adding new GHC releases in nixpkgs. 192 ./respect-ar-path.patch 193 194 # cabal passes incorrect --host= when cross-compiling 195 # https://github.com/haskell/cabal/issues/5887 196 (fetchpatch {
··· 191 # when adding new GHC releases in nixpkgs. 192 ./respect-ar-path.patch 193 194 + # fix hyperlinked haddock sources: https://github.com/haskell/haddock/pull/1482 195 + (fetchpatch { 196 + url = "https://patch-diff.githubusercontent.com/raw/haskell/haddock/pull/1482.patch"; 197 + sha256 = "sha256-8w8QUCsODaTvknCDGgTfFNZa8ZmvIKaKS+2ZJZ9foYk="; 198 + extraPrefix = "utils/haddock/"; 199 + stripLen = 1; 200 + }) 201 + 202 # cabal passes incorrect --host= when cross-compiling 203 # https://github.com/haskell/cabal/issues/5887 204 (fetchpatch {
+8
pkgs/development/compilers/ghc/9.0.2.nix
··· 184 outputs = [ "out" "doc" ]; 185 186 patches = [ 187 # Add flag that fixes C++ exception handling; opt-in. Merged in 9.4 and 9.2.2. 188 # https://gitlab.haskell.org/ghc/ghc/-/merge_requests/7423 189 (fetchpatch {
··· 184 outputs = [ "out" "doc" ]; 185 186 patches = [ 187 + # fix hyperlinked haddock sources: https://github.com/haskell/haddock/pull/1482 188 + (fetchpatch { 189 + url = "https://patch-diff.githubusercontent.com/raw/haskell/haddock/pull/1482.patch"; 190 + sha256 = "sha256-8w8QUCsODaTvknCDGgTfFNZa8ZmvIKaKS+2ZJZ9foYk="; 191 + extraPrefix = "utils/haddock/"; 192 + stripLen = 1; 193 + }) 194 + 195 # Add flag that fixes C++ exception handling; opt-in. Merged in 9.4 and 9.2.2. 196 # https://gitlab.haskell.org/ghc/ghc/-/merge_requests/7423 197 (fetchpatch {
+10
pkgs/development/compilers/ghc/9.2.3.nix
··· 185 186 outputs = [ "out" "doc" ]; 187 188 postPatch = "patchShebangs ."; 189 190 # GHC needs the locale configured during the Haddock phase.
··· 185 186 outputs = [ "out" "doc" ]; 187 188 + patches = [ 189 + # fix hyperlinked haddock sources: https://github.com/haskell/haddock/pull/1482 190 + (fetchpatch { 191 + url = "https://patch-diff.githubusercontent.com/raw/haskell/haddock/pull/1482.patch"; 192 + sha256 = "sha256-8w8QUCsODaTvknCDGgTfFNZa8ZmvIKaKS+2ZJZ9foYk="; 193 + extraPrefix = "utils/haddock/"; 194 + stripLen = 1; 195 + }) 196 + ]; 197 + 198 postPatch = "patchShebangs ."; 199 200 # GHC needs the locale configured during the Haddock phase.