about summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc/9.2.6.nix
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2023-12-20 11:54:22 +0100
committersternenseemann <sternenseemann@systemli.org>2023-12-20 14:12:32 +0100
commit7998143a43ae0ab51eed75e92851446daddc7966 (patch)
tree115440f4eb66493d613ee3e0a4531b0eaff5bb33 /pkgs/development/compilers/ghc/9.2.6.nix
parentaef2be6c6ca05905246ab505e1e4f635459917d6 (diff)
haskell.compiler: also build manual for cross-compilers
The reasoning given for disabling it is flawed: In most cases, sphinx
and its dependencies are already in the binary cache, since we only need
them as build tools—sphinx for the build platform is just the normal
pkgs.sphinx, since it doesn't care about targetPlatform.

We just need to disable it when the buildPlatform is also musl, so we
avoid pulling in sphinx in pkgsMusl.
Diffstat (limited to 'pkgs/development/compilers/ghc/9.2.6.nix')
-rw-r--r--pkgs/development/compilers/ghc/9.2.6.nix9
1 files changed, 3 insertions, 6 deletions
diff --git a/pkgs/development/compilers/ghc/9.2.6.nix b/pkgs/development/compilers/ghc/9.2.6.nix
index 5079578239eac..57c8270103595 100644
--- a/pkgs/development/compilers/ghc/9.2.6.nix
+++ b/pkgs/development/compilers/ghc/9.2.6.nix
@@ -46,12 +46,9 @@
 
 , #  Whether to build sphinx documentation.
   enableDocs ? (
-    # Docs disabled for musl and cross because it's a large task to keep
-    # all `sphinx` dependencies building in those environments.
-    # `sphinx` pulls in among others:
-    # Ruby, Python, Perl, Rust, OpenGL, Xorg, gtk, LLVM.
-    (stdenv.targetPlatform == stdenv.hostPlatform)
-    && !stdenv.hostPlatform.isMusl
+    # Docs disabled if we are building on musl because it's a large task to keep
+    # all `sphinx` dependencies building in this environment.
+    !stdenv.buildPlatform.isMusl
   )
 
 , enableHaddockProgram ?