Skip to content

Commit

Permalink
doc/default.nix: make the manual build on more than one core (#225921)
Browse files Browse the repository at this point in the history
* doc/default.nix: make the manual build on more than one core

Let's build the manual with more than one core.  Maybe people will take better care of it now that it is less painful to build.
  • Loading branch information
Adam Joseph committed Apr 25, 2023
1 parent e7e169c commit ed312cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ pandoc_flags = --extract-media=$(pandoc_media_dir) \
.PHONY: all
all: validate format out/html/index.html out/epub/manual.epub

.PHONY: render-md
render-md: ${MD_TARGETS}

.PHONY: debug
debug:
nix-shell --run "xmloscopy --docbook5 ./manual.xml ./manual-full.xml"
Expand Down
4 changes: 4 additions & 0 deletions doc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ in pkgs.stdenv.mkDerivation {
ln -s ${doc-support} ./doc-support/result
'';

preBuild = ''
make -j$NIX_BUILD_CORES render-md
'';

installPhase = ''
dest="$out/share/doc/nixpkgs"
mkdir -p "$(dirname "$dest")"
Expand Down

0 comments on commit ed312cb

Please sign in to comment.