@@ -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;
190+ doHaddock' = doHaddock
190− doHaddock' = doHaddock && (haskellLib.isLibrary componentId);
191+ && (haskellLib.isLibrary componentId)
192+ && stdenv.hostPlatform == stdenv.buildPlatform;
192in stdenv.lib.fix (drv:
194in stdenv.lib.fix (drv: