mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 13:39:15 +03:00
docs: get version from doc-support build
This commit is contained in:
parent
cd6bf8aa00
commit
d11f5a9d15
3 changed files with 6 additions and 5 deletions
|
@ -74,11 +74,10 @@ highlightjs:
|
||||||
manual-full.xml: ${MD_TARGETS} .version functions/library/locations.xml functions/library/generated *.xml **/*.xml **/**/*.xml
|
manual-full.xml: ${MD_TARGETS} .version functions/library/locations.xml functions/library/generated *.xml **/*.xml **/**/*.xml
|
||||||
xmllint --nonet --xinclude --noxincludenode manual.xml --output manual-full.xml
|
xmllint --nonet --xinclude --noxincludenode manual.xml --output manual-full.xml
|
||||||
|
|
||||||
.version:
|
.version: doc-support/result
|
||||||
nix-instantiate --eval \
|
ln -rfs ./doc-support/result/version .version
|
||||||
-E '(import ../lib).version' > .version
|
|
||||||
|
|
||||||
doc-support/result:
|
doc-support/result: doc-support/default.nix
|
||||||
(cd doc-support; nix-build)
|
(cd doc-support; nix-build)
|
||||||
|
|
||||||
functions/library/locations.xml: doc-support/result
|
functions/library/locations.xml: doc-support/result
|
||||||
|
|
|
@ -29,7 +29,7 @@ in pkgs.stdenv.mkDerivation {
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
echo ${lib.version} > .version
|
ln -s ${doc-support} ./doc-support/result
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
let
|
let
|
||||||
locationsXml = import ./lib-function-locations.nix { inherit pkgs nixpkgs; };
|
locationsXml = import ./lib-function-locations.nix { inherit pkgs nixpkgs; };
|
||||||
functionDocs = import ./lib-function-docs.nix { inherit locationsXml pkgs; };
|
functionDocs = import ./lib-function-docs.nix { inherit locationsXml pkgs; };
|
||||||
|
version = pkgs.lib.version;
|
||||||
in pkgs.runCommand "doc-support" {}
|
in pkgs.runCommand "doc-support" {}
|
||||||
''
|
''
|
||||||
mkdir result
|
mkdir result
|
||||||
|
@ -9,6 +10,7 @@ in pkgs.runCommand "doc-support" {}
|
||||||
cd result
|
cd result
|
||||||
ln -s ${locationsXml} ./function-locations.xml
|
ln -s ${locationsXml} ./function-locations.xml
|
||||||
ln -s ${functionDocs} ./function-docs
|
ln -s ${functionDocs} ./function-docs
|
||||||
|
echo -n "${version}" > ./version
|
||||||
)
|
)
|
||||||
mv result $out
|
mv result $out
|
||||||
''
|
''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue