diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2015-12-19 16:04:36 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2015-12-19 16:08:00 +0100 |
commit | ef21e5ee60272df6cb3a9e3ffb7982199051d13e (patch) | |
tree | ed15f984ead47cb332956c237503a1e22bdb51a0 /doc/default.nix | |
parent | af6732e5037ef81479f2dfd5e48921b380a80b7a (diff) |
nixpkgs manual: split languages into separate files
There's no change in content except for amending the title of the
section to mention "frameworks", as e.g. I don't consider Qt a language,
and it's likely there will be more of similar cases in future.
To be certain, I checked diff of the generated HTMLs.
Diffstat (limited to 'doc/default.nix')
-rw-r--r-- | doc/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/default.nix b/doc/default.nix index b8dac00eb65e..cca68014b0d1 100644 --- a/doc/default.nix +++ b/doc/default.nix @@ -1,10 +1,12 @@ with import ./.. { }; with lib; - +let + sources = sourceFilesBySuffices ./. [".xml"]; + sources-langs = ./languages-frameworks; +in stdenv.mkDerivation { name = "nixpkgs-manual"; - sources = sourceFilesBySuffices ./. [".xml"]; buildInputs = [ pandoc libxml2 libxslt ]; @@ -35,7 +37,9 @@ stdenv.mkDerivation { echo "</chapter>" } >haskell-users-guide.xml - ln -s "$sources/"*.xml . + ln -s '${sources}/'*.xml . + mkdir ./languages-frameworks + cp -s '${sources-langs}'/* ./languages-frameworks echo ${nixpkgsVersion} > .version |