@@ -6,7 +6,7 @@
6# GHC automatically configured with the dependencies in the package
6# GHC automatically configured with the dependencies in the package
9−{ lib, stdenv, ghc, runCommand, lndir, makeWrapper
9+{ lib, stdenv, ghc, runCommand, lndir, makeWrapper, haskellLib
12{ componentName # Full derivation name of the component
12{ componentName # Full derivation name of the component
@@ -19,7 +19,7 @@ let
19 libDir = "$out/${configFiles.libDir}";
19 libDir = "$out/${configFiles.libDir}";
20 docDir = "$out/share/doc/ghc/html";
20 docDir = "$out/share/doc/ghc/html";
21 # For musl we can use haddock from the buildGHC
21 # For musl we can use haddock from the buildGHC
22− haddock = if stdenv.hostPlatform.isLinux && stdenv.targetPlatform.isMusl && !(stdenv.buildPlatform == stdenv.hostPlatform)
22+ haddock = if stdenv.hostPlatform.isLinux && stdenv.targetPlatform.isMusl && !haskellLib.isNativeMusl
23 then ghc.buildGHC
23 then ghc.buildGHC