diff options
author | Peter Simons <simons@cryp.to> | 2012-07-14 15:47:05 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2012-07-14 15:47:05 +0200 |
commit | 40ef76f4a4b036f0b3efc2493bb521ce2818efd1 (patch) | |
tree | 2fe46773b6327358aec2d5a7eea1c98969ad9b24 /pkgs/applications/misc/ikiwiki/default.nix | |
parent | 3d416ed030dc123df9f41480825103b6ac1f2a7d (diff) | |
download | nixlib-40ef76f4a4b036f0b3efc2493bb521ce2818efd1.tar nixlib-40ef76f4a4b036f0b3efc2493bb521ce2818efd1.tar.gz nixlib-40ef76f4a4b036f0b3efc2493bb521ce2818efd1.tar.bz2 nixlib-40ef76f4a4b036f0b3efc2493bb521ce2818efd1.tar.lz nixlib-40ef76f4a4b036f0b3efc2493bb521ce2818efd1.tar.xz nixlib-40ef76f4a4b036f0b3efc2493bb521ce2818efd1.tar.zst nixlib-40ef76f4a4b036f0b3efc2493bb521ce2818efd1.zip |
ikiwiki: make docutils support optional
Diffstat (limited to 'pkgs/applications/misc/ikiwiki/default.nix')
-rw-r--r-- | pkgs/applications/misc/ikiwiki/default.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/applications/misc/ikiwiki/default.nix b/pkgs/applications/misc/ikiwiki/default.nix index bb3e1eb1306d..f3fb575c6e57 100644 --- a/pkgs/applications/misc/ikiwiki/default.nix +++ b/pkgs/applications/misc/ikiwiki/default.nix @@ -1,20 +1,22 @@ { stdenv, fetchurl, perl, gettext, makeWrapper, PerlMagick, YAML , TextMarkdown, URI, HTMLParser, HTMLScrubber, HTMLTemplate, TimeDate , CGISession, CGIFormBuilder, DBFile, LocaleGettext, RpcXML, XMLSimple -, YAMLLibYAML, which, HTMLTree, python, docutils, Filechdir +, YAMLLibYAML, which, HTMLTree , gitSupport ? false, git ? null +, docutilsSupport ? false, python ? null, docutils ? null , monotoneSupport ? false, monotone ? null , bazaarSupport ? false, bazaar ? null -, cvsSupport ? false, cvs ? null, cvsps ? null +, cvsSupport ? false, cvs ? null, cvsps ? null, Filechdir ? null , subversionSupport ? false, subversion ? null , mercurialSupport ? false, mercurial ? null , extraUtils ? [] }: +assert docutilsSupport -> (python != null && docutils != null); assert gitSupport -> (git != null); assert monotoneSupport -> (monotone != null); assert bazaarSupport -> (bazaar != null); -assert cvsSupport -> (cvs != null && cvsps != null); +assert cvsSupport -> (cvs != null && cvsps != null && Filechdir != null); assert subversionSupport -> (subversion != null); assert mercurialSupport -> (mercurial != null); @@ -34,7 +36,8 @@ stdenv.mkDerivation { buildInputs = [ perl TextMarkdown URI HTMLParser HTMLScrubber HTMLTemplate TimeDate gettext makeWrapper DBFile CGISession CGIFormBuilder LocaleGettext - RpcXML XMLSimple PerlMagick YAML YAMLLibYAML which HTMLTree python docutils ] + RpcXML XMLSimple PerlMagick YAML YAMLLibYAML which HTMLTree ] + ++ lib.optionals docutilsSupport [python docutils] ++ lib.optionals gitSupport [git] ++ lib.optionals monotoneSupport [monotone] ++ lib.optionals bazaarSupport [bazaar] |