on iko/ghcjs-patch-master help sign in
Disable haddock when cross-compiling.
aec89ccJean-Baptiste Giraudeau
builder/comp-builder.nix+3−1
@@ -187,7 +187,9 @@ let
187 # the target dir for haddock documentation
187 # the target dir for haddock documentation
188 docdir = docoutput: docoutput + "/share/doc/" + componentId.cname;
188 docdir = docoutput: docoutput + "/share/doc/" + componentId.cname;
189
189
190+ doHaddock' = doHaddock
190− doHaddock' = doHaddock && (haskellLib.isLibrary componentId);
191+ && (haskellLib.isLibrary componentId)
192+ && stdenv.hostPlatform == stdenv.buildPlatform;
191
193
192in stdenv.lib.fix (drv:
194in stdenv.lib.fix (drv:
193
195