diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index 2c7c3be792af..94cc50b83076 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -864,6 +864,8 @@ lib.fix ( ${optionalString doHoogle "--hoogle"} \ ${optionalString doHaddockQuickjump "--quickjump"} \ ${optionalString (isLibrary && hyperlinkSource) "--hyperlink-source"} \ + ${optionalString enableParallelBuilding "--haddock-option=-j$NIX_BUILD_CORES"} \ + --haddock-option=--no-tmp-comp-dir \ ${lib.concatStringsSep " " haddockFlags} ''} runHook postHaddock