ninja: build manual with docbook (#41433)

It is not meant to be built with asciidoc alone: it lacks the table of contents
and styles. See  https://github.com/ninja-build/ninja/blob/v1.8.2/doc/README.md
This commit is contained in:
Orivej Desh 2018-06-03 22:34:27 +00:00 committed by GitHub
parent a4e53b64d0
commit 41c8b92d4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, python, asciidoc, re2c }:
{ stdenv, fetchFromGitHub, python, asciidoc, docbook_xml_dtd_45, docbook_xsl, libxslt, re2c }:
stdenv.mkDerivation rec {
name = "ninja-${version}";
@ -11,11 +11,11 @@ stdenv.mkDerivation rec {
sha256 = "16scq9hcq6c5ap6sy8j4qi75qps1zvrf3p79j1vbrvnqzp928i5f";
};
nativeBuildInputs = [ python asciidoc re2c ];
nativeBuildInputs = [ python asciidoc docbook_xml_dtd_45 docbook_xsl libxslt.bin re2c ];
buildPhase = ''
python configure.py --bootstrap
asciidoc doc/manual.asciidoc
./ninja manual
'';
installPhase = ''