summary refs log tree commit diff
path: root/pkgs/applications/misc/ikiwiki/default.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2012-07-14 15:47:05 +0200
committerPeter Simons <simons@cryp.to>2012-07-14 15:47:05 +0200
commit40ef76f4a4b036f0b3efc2493bb521ce2818efd1 (patch)
tree2fe46773b6327358aec2d5a7eea1c98969ad9b24 /pkgs/applications/misc/ikiwiki/default.nix
parent3d416ed030dc123df9f41480825103b6ac1f2a7d (diff)
downloadnixpkgs-40ef76f4a4b036f0b3efc2493bb521ce2818efd1.tar
nixpkgs-40ef76f4a4b036f0b3efc2493bb521ce2818efd1.tar.gz
nixpkgs-40ef76f4a4b036f0b3efc2493bb521ce2818efd1.tar.bz2
nixpkgs-40ef76f4a4b036f0b3efc2493bb521ce2818efd1.tar.lz
nixpkgs-40ef76f4a4b036f0b3efc2493bb521ce2818efd1.tar.xz
nixpkgs-40ef76f4a4b036f0b3efc2493bb521ce2818efd1.tar.zst
nixpkgs-40ef76f4a4b036f0b3efc2493bb521ce2818efd1.zip
ikiwiki: make docutils support optional
Diffstat (limited to 'pkgs/applications/misc/ikiwiki/default.nix')
-rw-r--r--pkgs/applications/misc/ikiwiki/default.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/applications/misc/ikiwiki/default.nix b/pkgs/applications/misc/ikiwiki/default.nix
index bb3e1eb1306..f3fb575c6e5 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]