From 41c8b92d4fc4da9c5026342df4700635afbd5ef2 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Sun, 3 Jun 2018 22:34:27 +0000 Subject: [PATCH] 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 --- pkgs/development/tools/build-managers/ninja/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/build-managers/ninja/default.nix b/pkgs/development/tools/build-managers/ninja/default.nix index c59d2faaf26c..6f788fc5ed6c 100644 --- a/pkgs/development/tools/build-managers/ninja/default.nix +++ b/pkgs/development/tools/build-managers/ninja/default.nix @@ -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 = ''