2019-07-04 14:23:39 +02:00
|
|
|
{ pkgs ? (import ../.. {}), nixpkgs ? { }}:
|
|
|
|
let
|
|
|
|
locationsXml = import ./lib-function-locations.nix { inherit pkgs nixpkgs; };
|
|
|
|
functionDocs = import ./lib-function-docs.nix { inherit locationsXml pkgs; };
|
2019-07-04 14:27:16 +02:00
|
|
|
version = pkgs.lib.version;
|
2019-07-04 14:23:39 +02:00
|
|
|
in pkgs.runCommand "doc-support" {}
|
|
|
|
''
|
|
|
|
mkdir result
|
|
|
|
(
|
|
|
|
cd result
|
|
|
|
ln -s ${locationsXml} ./function-locations.xml
|
|
|
|
ln -s ${functionDocs} ./function-docs
|
2019-07-04 14:30:13 +02:00
|
|
|
|
|
|
|
ln -s ${pkgs.docbook5}/xml/rng/docbook/docbook.rng ./docbook.rng
|
2019-07-04 14:46:47 +02:00
|
|
|
ln -s ${pkgs.docbook_xsl_ns}/xml/xsl ./xsl
|
2019-07-04 14:30:13 +02:00
|
|
|
|
2019-07-04 14:51:43 +02:00
|
|
|
ln -s ${../../nixos/doc/xmlformat.conf} ./xmlformat.conf
|
2019-07-04 14:46:59 +02:00
|
|
|
ln -s ${pkgs.documentation-highlighter} ./highlightjs
|
|
|
|
|
2019-07-04 14:27:16 +02:00
|
|
|
echo -n "${version}" > ./version
|
2019-07-04 14:23:39 +02:00
|
|
|
)
|
|
|
|
mv result $out
|
|
|
|
''
|