diff options
author | Graham Christensen <graham@grahamc.com> | 2019-07-04 08:27:16 -0400 |
---|---|---|
committer | Graham Christensen <graham@grahamc.com> | 2019-07-04 09:10:13 -0400 |
commit | d11f5a9d15c2d1eb735750392d69d515ae51df6c (patch) | |
tree | dee43f0c1af01b6ef430cee98cfcdc933246ec55 /doc/doc-support | |
parent | cd6bf8aa00962766e4db9f26e36848b6be8dd096 (diff) |
docs: get version from doc-support build
Diffstat (limited to 'doc/doc-support')
-rw-r--r-- | doc/doc-support/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/doc-support/default.nix b/doc/doc-support/default.nix index 93f6287d4b09c..94b3ea464d9f4 100644 --- a/doc/doc-support/default.nix +++ b/doc/doc-support/default.nix @@ -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 '' |