2019-07-04 13:23:39 +01: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 13:27:16 +01:00
|
|
|
version = pkgs.lib.version;
|
2019-07-04 13:23:39 +01:00
|
|
|
in pkgs.runCommand "doc-support" {}
|
|
|
|
''
|
|
|
|
mkdir result
|
|
|
|
(
|
|
|
|
cd result
|
|
|
|
ln -s ${locationsXml} ./function-locations.xml
|
|
|
|
ln -s ${functionDocs} ./function-docs
|
2019-07-04 13:27:16 +01:00
|
|
|
echo -n "${version}" > ./version
|
2019-07-04 13:23:39 +01:00
|
|
|
)
|
|
|
|
mv result $out
|
|
|
|
''
|