docs: use a single nix-build for all the generate function docs

This commit is contained in:
Graham Christensen
2019-07-04 09:07:47 -04:00
parent ddfe184efc
commit cd6bf8aa00
5 changed files with 24 additions and 14 deletions
+14
View File
@@ -0,0 +1,14 @@
{ pkgs ? (import ../.. {}), nixpkgs ? { }}:
let
locationsXml = import ./lib-function-locations.nix { inherit pkgs nixpkgs; };
functionDocs = import ./lib-function-docs.nix { inherit locationsXml pkgs; };
in pkgs.runCommand "doc-support" {}
''
mkdir result
(
cd result
ln -s ${locationsXml} ./function-locations.xml
ln -s ${functionDocs} ./function-docs
)
mv result $out
''