1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

Validate when building outputs

This commit is contained in:
Graham Christensen 2018-03-24 22:22:38 -04:00
parent f67ea4a6d0
commit 30dd2d3feb
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C
2 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ clean:
validate: manual-full.xml validate: manual-full.xml
jing "$$RNG" manual-full.xml jing "$$RNG" manual-full.xml
out/html/index.html: manual-full.xml style.css out/html/index.html: validate manual-full.xml style.css
mkdir -p out/html mkdir -p out/html
xsltproc $$xsltFlags \ xsltproc $$xsltFlags \
--nonet --xinclude \ --nonet --xinclude \
@ -24,7 +24,7 @@ out/html/index.html: manual-full.xml style.css
mkdir -p out/html/images/callouts mkdir -p out/html/images/callouts
cp "$$XSL/docbook/images/callouts/"*.gif out/html/images/callouts/ cp "$$XSL/docbook/images/callouts/"*.gif out/html/images/callouts/
out/epub/manual.epub: manual-full.xml out/epub/manual.epub: validate manual-full.xml
mkdir -p out/epub/scratch mkdir -p out/epub/scratch
xsltproc $$xsltFlags --nonet \ xsltproc $$xsltFlags --nonet \
--output out/epub/scratch/ \ --output out/epub/scratch/ \

View file

@ -7,7 +7,7 @@ in
pkgs.stdenv.mkDerivation { pkgs.stdenv.mkDerivation {
name = "nixpkgs-manual"; name = "nixpkgs-manual";
buildInputs = with pkgs; [ pandoc libxml2 libxslt zip ]; buildInputs = with pkgs; [ pandoc libxml2 libxslt zip jing ];
src = ./.; src = ./.;