From cd33c34578485df663fd9ed39ca5c080d8706824 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Mon, 21 Jun 2021 15:17:19 +0200 Subject: [PATCH] haskell.compiler.ghc884: patch for sphinx >= 4.0 With sphinx 4, interpreting the conf.py fails due to a decode error: https://gitlab.haskell.org/ghc/ghc/-/issues/19962 The fix is an one line change which we have to backport from GHC master. 9.2 and 8.10.6 will have a fix for this, GHC 9.0.1 and ghcHEAD already have and GHC 8.10.4 has been patched in nixpkgs already. --- pkgs/development/compilers/ghc/8.8.4.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/compilers/ghc/8.8.4.nix b/pkgs/development/compilers/ghc/8.8.4.nix index 002d83ef6be1..544b96f5e4f0 100644 --- a/pkgs/development/compilers/ghc/8.8.4.nix +++ b/pkgs/development/compilers/ghc/8.8.4.nix @@ -134,6 +134,9 @@ stdenv.mkDerivation (rec { # upstream patch. Don't forget to check backport status of the upstream patch # when adding new GHC releases in nixpkgs. ./respect-ar-path.patch + # Fix documentation configuration which causes a syntax error with sphinx 4.* + # See also https://gitlab.haskell.org/ghc/ghc/-/issues/19962 + ./sphinx-4-configuration.patch ]; postPatch = "patchShebangs .";