ikiwiki: make docutils support optional
This commit is contained in:
parent
3d416ed030
commit
40ef76f4a4
@ -1,20 +1,22 @@
|
|||||||
{ stdenv, fetchurl, perl, gettext, makeWrapper, PerlMagick, YAML
|
{ stdenv, fetchurl, perl, gettext, makeWrapper, PerlMagick, YAML
|
||||||
, TextMarkdown, URI, HTMLParser, HTMLScrubber, HTMLTemplate, TimeDate
|
, TextMarkdown, URI, HTMLParser, HTMLScrubber, HTMLTemplate, TimeDate
|
||||||
, CGISession, CGIFormBuilder, DBFile, LocaleGettext, RpcXML, XMLSimple
|
, CGISession, CGIFormBuilder, DBFile, LocaleGettext, RpcXML, XMLSimple
|
||||||
, YAMLLibYAML, which, HTMLTree, python, docutils, Filechdir
|
, YAMLLibYAML, which, HTMLTree
|
||||||
, gitSupport ? false, git ? null
|
, gitSupport ? false, git ? null
|
||||||
|
, docutilsSupport ? false, python ? null, docutils ? null
|
||||||
, monotoneSupport ? false, monotone ? null
|
, monotoneSupport ? false, monotone ? null
|
||||||
, bazaarSupport ? false, bazaar ? null
|
, bazaarSupport ? false, bazaar ? null
|
||||||
, cvsSupport ? false, cvs ? null, cvsps ? null
|
, cvsSupport ? false, cvs ? null, cvsps ? null, Filechdir ? null
|
||||||
, subversionSupport ? false, subversion ? null
|
, subversionSupport ? false, subversion ? null
|
||||||
, mercurialSupport ? false, mercurial ? null
|
, mercurialSupport ? false, mercurial ? null
|
||||||
, extraUtils ? []
|
, extraUtils ? []
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
assert docutilsSupport -> (python != null && docutils != null);
|
||||||
assert gitSupport -> (git != null);
|
assert gitSupport -> (git != null);
|
||||||
assert monotoneSupport -> (monotone != null);
|
assert monotoneSupport -> (monotone != null);
|
||||||
assert bazaarSupport -> (bazaar != null);
|
assert bazaarSupport -> (bazaar != null);
|
||||||
assert cvsSupport -> (cvs != null && cvsps != null);
|
assert cvsSupport -> (cvs != null && cvsps != null && Filechdir != null);
|
||||||
assert subversionSupport -> (subversion != null);
|
assert subversionSupport -> (subversion != null);
|
||||||
assert mercurialSupport -> (mercurial != null);
|
assert mercurialSupport -> (mercurial != null);
|
||||||
|
|
||||||
@ -34,7 +36,8 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
buildInputs = [ perl TextMarkdown URI HTMLParser HTMLScrubber HTMLTemplate
|
buildInputs = [ perl TextMarkdown URI HTMLParser HTMLScrubber HTMLTemplate
|
||||||
TimeDate gettext makeWrapper DBFile CGISession CGIFormBuilder LocaleGettext
|
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 gitSupport [git]
|
||||||
++ lib.optionals monotoneSupport [monotone]
|
++ lib.optionals monotoneSupport [monotone]
|
||||||
++ lib.optionals bazaarSupport [bazaar]
|
++ lib.optionals bazaarSupport [bazaar]
|
||||||
|
Loading…
Reference in New Issue
Block a user