Skip to content

Commit

Permalink
Remove sphinx dependency and don't build docs for old GHCs
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack committed Feb 7, 2024
1 parent 1402b84 commit 5e9da77
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions compiler/ghc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let self =
# build-tools
, bootPkgs
, buildPackages
, autoconf, automake, coreutils, fetchurl, fetchpatch, perl, python3, m4, sphinx, numactl, elfutils, libcxx, libcxxabi
, autoconf, automake, coreutils, fetchurl, fetchpatch, perl, python3, m4, numactl, elfutils, libcxx, libcxxabi
, autoreconfHook
, bash

Expand Down Expand Up @@ -141,9 +141,6 @@ let
CrossCompilePrefix = ${targetPrefix}
'' + lib.optionalString isCrossTarget ''
Stage1Only = ${if targetPlatform.system == hostPlatform.system then "NO" else "YES"}
''
# GHC 9.0.1 fails to compile for musl unless HADDOC_DOCS = NO
+ lib.optionalString (isCrossTarget || (targetPlatform.isMusl && builtins.compareVersions ghc-version "9.0.1" >= 0)) ''
HADDOCK_DOCS = NO
BUILD_SPHINX_HTML = NO
BUILD_SPHINX_PDF = NO
Expand Down Expand Up @@ -474,7 +471,7 @@ stdenv.mkDerivation (rec {
dontAddExtraLibs = true;

nativeBuildInputs = [
perl autoconf automake m4 python3 sphinx
perl autoconf automake m4 python3
ghc bootPkgs.alex bootPkgs.happy bootPkgs.hscolour
] ++ lib.optional (patches != []) autoreconfHook;

Expand Down

0 comments on commit 5e9da77

Please sign in to comment.