diff options
author | sternenseemann <sternenseemann@systemli.org> | 2023-02-26 16:39:42 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-03-03 23:56:30 +0100 |
commit | 2278f9ebe2cc2595f20fb756b7a499699c4fe9c1 (patch) | |
tree | ee6e89234d2e49849eaf1080f61fb191c6bac8d2 /pkgs/development/compilers/ghc/9.4.3.nix | |
parent | 07ff0b59009c59e65695c0cdc4d0197910534391 (diff) | |
download | nixpkgs-2278f9ebe2cc2595f20fb756b7a499699c4fe9c1.tar nixpkgs-2278f9ebe2cc2595f20fb756b7a499699c4fe9c1.tar.gz nixpkgs-2278f9ebe2cc2595f20fb756b7a499699c4fe9c1.tar.bz2 nixpkgs-2278f9ebe2cc2595f20fb756b7a499699c4fe9c1.tar.lz nixpkgs-2278f9ebe2cc2595f20fb756b7a499699c4fe9c1.tar.xz nixpkgs-2278f9ebe2cc2595f20fb756b7a499699c4fe9c1.tar.zst nixpkgs-2278f9ebe2cc2595f20fb756b7a499699c4fe9c1.zip |
haskell.compiler: fix GHCs' user guide build with sphinx >= 6.0
This requires backporting upstream's fix to all GHCs we are currently shipping, since only GHC 9.4.5 and 9.6.1 will receive a backport. GHC HEAD will be taken care of in #217168. https://gitlab.haskell.org/ghc/ghc/-/merge_requests/9625 https://gitlab.haskell.org/ghc/ghc/-/issues/22690
Diffstat (limited to 'pkgs/development/compilers/ghc/9.4.3.nix')
-rw-r--r-- | pkgs/development/compilers/ghc/9.4.3.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ghc/9.4.3.nix b/pkgs/development/compilers/ghc/9.4.3.nix index fea2d4c4c8c..bb747ea910a 100644 --- a/pkgs/development/compilers/ghc/9.4.3.nix +++ b/pkgs/development/compilers/ghc/9.4.3.nix @@ -189,6 +189,15 @@ stdenv.mkDerivation (rec { outputs = [ "out" "doc" ]; + patches = [ + # Fix docs build with sphinx >= 6.0 + # https://gitlab.haskell.org/ghc/ghc/-/issues/22766 + (fetchpatch { + name = "ghc-docs-sphinx-6.0.patch"; + url = "https://gitlab.haskell.org/ghc/ghc/-/commit/10e94a556b4f90769b7fd718b9790d58ae566600.patch"; + sha256 = "0kmhfamr16w8gch0lgln2912r8aryjky1hfcda3jkcwa5cdzgjdv"; + }) + ]; postPatch = "patchShebangs ."; |