on iko/ghcjs-patch-master help sign in
allow empty packages

fixes #50

commitd6255c97aafa9435de42f16c5478324f9ca919b8 authorMoritz Angermann <moritz.angermann@gmail.com> dateTue 22 Oct 2019, 09:45 (7 years ago) parent4bc3b47
1 file changed+8−1
builder/comp-builder.nix+8−1
builder/comp-builder.nix+8−1
@@ -208,11 +208,18 @@ stdenv.mkDerivation ({
208208 docdir="${docdir "$doc"}"
209209 mkdir -p "$docdir"
210210
211+ # We accept that this might not produce any
212+ # output (hence the || true). Depending of
213+ # configuration flags, there might just be no
214+ # modules to run haddock on. E.g. a package
215+ # might turn into an empty one (see the fail
216+ # pkg).
211217 $SETUP_HS haddock \
212218 "--html" \
213219 ${lib.optionalString doHoogle "--hoogle"} \
214220 ${lib.optionalString hyperlinkSource "--hyperlink-source"} \
215− ${lib.concatStringsSep " " (component.setupHaddockFlags ++ setupGhcOptions)}
221+ ${lib.concatStringsSep " " (component.setupHaddockFlags ++ setupGhcOptions)} \
222+ || true
216223
217224 html="dist/doc/html/${componentId.cname}"
218225