nixos docs: Move generated XML in to a specific subdirectory to allow easier hacking

This commit is contained in:
Graham Christensen
2018-04-27 22:44:51 -04:00
parent 68d48cecf6
commit 59f8b1e844
4 changed files with 12 additions and 8 deletions
+8 -3
View File
@@ -102,13 +102,18 @@ let
</section>
'';
generatedSources = runCommand "generated-docbook" {} ''
mkdir $out
ln -s ${modulesDoc} $out/modules.xml
ln -s ${optionsDocBook} $out/options-db.xml
printf "%s" "${version}" > $out/version
'';
copySources =
''
cp -prd $sources/* . # */
ln -s ${generatedSources} ./generated
chmod -R u+w .
ln -s ${modulesDoc} configuration/modules.xml
ln -s ${optionsDocBook} options-db.xml
printf "%s" "${version}" > version
'';
toc = builtins.toFile "toc.xml"