Skip to content

Commit 7f98399

Browse files
committed
Remove sphinx dependency and don't build docs for old GHCs
1 parent 1402b84 commit 7f98399

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler/ghc/default.nix

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,6 @@ let
141141
CrossCompilePrefix = ${targetPrefix}
142142
'' + lib.optionalString isCrossTarget ''
143143
Stage1Only = ${if targetPlatform.system == hostPlatform.system then "NO" else "YES"}
144-
''
145-
# GHC 9.0.1 fails to compile for musl unless HADDOC_DOCS = NO
146-
+ lib.optionalString (isCrossTarget || (targetPlatform.isMusl && builtins.compareVersions ghc-version "9.0.1" >= 0)) ''
147144
HADDOCK_DOCS = NO
148145
BUILD_SPHINX_HTML = NO
149146
BUILD_SPHINX_PDF = NO
@@ -474,7 +471,7 @@ stdenv.mkDerivation (rec {
474471
dontAddExtraLibs = true;
475472

476473
nativeBuildInputs = [
477-
perl autoconf automake m4 python3 sphinx
474+
perl autoconf automake m4 python3
478475
ghc bootPkgs.alex bootPkgs.happy bootPkgs.hscolour
479476
] ++ lib.optional (patches != []) autoreconfHook;
480477

0 commit comments

Comments
 (0)