docs: get version from doc-support build

This commit is contained in:
Graham Christensen
2019-07-04 09:10:13 -04:00
parent cd6bf8aa00
commit d11f5a9d15
3 changed files with 6 additions and 5 deletions
+2
View File
@@ -2,6 +2,7 @@
let
locationsXml = import ./lib-function-locations.nix { inherit pkgs nixpkgs; };
functionDocs = import ./lib-function-docs.nix { inherit locationsXml pkgs; };
version = pkgs.lib.version;
in pkgs.runCommand "doc-support" {}
''
mkdir result
@@ -9,6 +10,7 @@ in pkgs.runCommand "doc-support" {}
cd result
ln -s ${locationsXml} ./function-locations.xml
ln -s ${functionDocs} ./function-docs
echo -n "${version}" > ./version
)
mv result $out
''