1 { pkgs ? (import ../.. {}), nixpkgs ? { }}:
3 locationsXml = import ./lib-function-locations.nix { inherit pkgs nixpkgs; };
4 functionDocs = import ./lib-function-docs.nix { inherit locationsXml pkgs; };
5 version = pkgs.lib.version;
7 epub-xsl = pkgs.writeText "epub.xsl" ''
10 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
12 <xsl:import href="${pkgs.docbook_xsl_ns}/xml/xsl/docbook/epub/docbook.xsl" />
13 <xsl:import href="${./parameters.xml}"/>
17 xhtml-xsl = pkgs.writeText "xhtml.xsl" ''
20 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
22 <xsl:import href="${pkgs.docbook_xsl_ns}/xml/xsl/docbook/xhtml/docbook.xsl" />
23 <xsl:import href="${./parameters.xml}"/>
26 in pkgs.runCommand "doc-support" {}
31 ln -s ${locationsXml} ./function-locations.xml
32 ln -s ${functionDocs} ./function-docs
34 ln -s ${pkgs.docbook5}/xml/rng/docbook/docbook.rng ./docbook.rng
35 ln -s ${pkgs.docbook_xsl_ns}/xml/xsl ./xsl
36 ln -s ${epub-xsl} ./epub.xsl
37 ln -s ${xhtml-xsl} ./xhtml.xsl
39 ln -s ${../../nixos/doc/xmlformat.conf} ./xmlformat.conf
40 ln -s ${pkgs.documentation-highlighter} ./highlightjs
42 echo -n "${version}" > ./version