this new package shall eventually contain the rendering code necessary to produce the entirety of the nixos (not nixpkgs) manual, in all of its various output formats.
···155155 OTD_REVISION = revision;
156156157157 nativeBuildInputs = [
158158- (let
159159- # python3Minimal can't be overridden with packages on Darwin, due to a missing framework.
160160- # Instead of modifying stdenv, we take the easy way out, since most people on Darwin will
161161- # just be hacking on the Nixpkgs manual (which also uses make-options-doc).
162162- python = if pkgs.stdenv.isDarwin then pkgs.python3 else pkgs.python3Minimal;
163163- self = (python.override {
164164- inherit self;
165165- includeSiteCustomize = true;
166166- });
167167- in self.withPackages (p:
168168- let
169169- # TODO add our own small test suite when rendering is split out into a new tool
170170- markdown-it-py = p.markdown-it-py.override {
171171- disableTests = true;
172172- };
173173- mdit-py-plugins = p.mdit-py-plugins.override {
174174- inherit markdown-it-py;
175175- disableTests = true;
176176- };
177177- in [
178178- markdown-it-py
179179- mdit-py-plugins
180180- p.frozendict
181181- ]))
158158+ pkgs.nixos-render-docs
182159 ];
183160 } ''
184184- python ${./optionsToDocbook.py} \
161161+ nixos-render-docs \
185162 ${lib.optionalString markdownByDefault "--markdown-by-default"} \
186163 ${optionsJSON}/share/doc/nixos/options.json \
187164 > options.xml