Disable haddock when cross-compiling.
commitaec89ccf9cffdb6a33163ce91414cbe8b22d465c
authorJean-Baptiste Giraudeau <jb@giraudeau.info>
dateWed 27 Feb 2019, 14:35 (8 years ago)
parent5180ae9
builder/comp-builder.nix+3−1
@@ -187,7 +187,9 @@ let
187187 # the target dir for haddock documentation
188188 docdir = docoutput: docoutput + "/share/doc/" + componentId.cname;
189189
190− doHaddock' = doHaddock && (haskellLib.isLibrary componentId);
190+ doHaddock' = doHaddock
191+ && (haskellLib.isLibrary componentId)
192+ && stdenv.hostPlatform == stdenv.buildPlatform;
191193
192194in stdenv.lib.fix (drv:
193195