Include the NixOS version in the manual

In particular, this will make it clear what version of the manual is
shown at http://nixos.org/nixos/manual/.
This commit is contained in:
Eelco Dolstra 2013-11-01 16:44:03 +01:00
parent dac108f51b
commit 9ef07d859b
3 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,4 @@
{ pkgs, options
, revision ? "master"
}:
{ pkgs, options, version, revision }:
with pkgs.lib;
@ -60,6 +58,7 @@ in rec {
buildCommand = ''
ln -s $sources/*.xml . # */
ln -s ${optionsDocBook} options-db.xml
echo "${version}" > version
# Check the validity of the manual sources.
xmllint --noout --nonet --xinclude --noxincludenode \

View file

@ -5,6 +5,7 @@
<info>
<title>NixOS Manual</title>
<subtitle>Version <xi:include href="version" parse="text" /></subtitle>
<author>
<personname>

View file

@ -23,6 +23,7 @@ let
manual = import ../../../doc/manual {
inherit pkgs;
version = config.system.nixosVersion;
revision = config.system.nixosRevision;
options = eval.options;
};