ikiwiki: format, cleanup
This commit is contained in:
parent
503f72bfa6
commit
342f2d390b
@ -1,39 +1,28 @@
|
|||||||
{ lib, stdenv, fetchurl, perlPackages, gettext, makeWrapper, ImageMagick, which, highlight
|
{ lib, stdenv, fetchurl, perlPackages, gettext, makeWrapper, ImageMagick, which, highlight
|
||||||
, gitSupport ? false, git ? null
|
, gitSupport ? false, git
|
||||||
, docutilsSupport ? false, python ? null, docutils ? null
|
, docutilsSupport ? false, python, docutils
|
||||||
, monotoneSupport ? false, monotone ? null
|
, monotoneSupport ? false, monotone
|
||||||
, bazaarSupport ? false, breezy ? null
|
, bazaarSupport ? false, breezy
|
||||||
, cvsSupport ? false, cvs ? null, cvsps ? null
|
, cvsSupport ? false, cvs, cvsps
|
||||||
, subversionSupport ? false, subversion ? null
|
, subversionSupport ? false, subversion
|
||||||
, mercurialSupport ? false, mercurial ? null
|
, mercurialSupport ? false, mercurial
|
||||||
, extraUtils ? []
|
, extraUtils ? []
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert docutilsSupport -> (python != null && docutils != null);
|
stdenv.mkDerivation rec {
|
||||||
assert gitSupport -> (git != null);
|
pname = "ikiwiki";
|
||||||
assert monotoneSupport -> (monotone != null);
|
|
||||||
assert bazaarSupport -> (breezy != null);
|
|
||||||
assert cvsSupport -> (cvs != null && cvsps != null && perlPackages.Filechdir != null);
|
|
||||||
assert subversionSupport -> (subversion != null);
|
|
||||||
assert mercurialSupport -> (mercurial != null);
|
|
||||||
|
|
||||||
let
|
|
||||||
name = "ikiwiki";
|
|
||||||
version = "3.20200202.3";
|
version = "3.20200202.3";
|
||||||
in
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "${name}-${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://debian/pool/main/i/ikiwiki/${name}_${version}.orig.tar.xz";
|
url = "mirror://debian/pool/main/i/ikiwiki/ikiwiki_${version}.orig.tar.xz";
|
||||||
sha256 = "0skrc8r4wh4mjfgw1c94awr5sacfb9nfsbm4frikanc9xsy16ksr";
|
sha256 = "0skrc8r4wh4mjfgw1c94awr5sacfb9nfsbm4frikanc9xsy16ksr";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ which highlight ]
|
buildInputs = [ which highlight ]
|
||||||
++ (with perlPackages; [ perl TextMarkdown URI HTMLParser HTMLScrubber HTMLTemplate
|
++ (with perlPackages; [ perl TextMarkdown URI HTMLParser HTMLScrubber HTMLTemplate
|
||||||
TimeDate gettext makeWrapper DBFile CGISession CGIFormBuilder LocaleGettext
|
TimeDate gettext makeWrapper DBFile CGISession CGIFormBuilder LocaleGettext
|
||||||
RpcXML XMLSimple ImageMagick YAML YAMLLibYAML HTMLTree AuthenPassphrase
|
RpcXML XMLSimple ImageMagick YAML YAMLLibYAML HTMLTree AuthenPassphrase
|
||||||
NetOpenIDConsumer LWPxParanoidAgent CryptSSLeay ])
|
NetOpenIDConsumer LWPxParanoidAgent CryptSSLeay ])
|
||||||
++ lib.optionals docutilsSupport [python docutils]
|
++ lib.optionals docutilsSupport [python docutils]
|
||||||
++ lib.optionals gitSupport [git]
|
++ lib.optionals gitSupport [git]
|
||||||
++ lib.optionals monotoneSupport [monotone]
|
++ lib.optionals monotoneSupport [monotone]
|
||||||
@ -80,11 +69,11 @@ stdenv.mkDerivation {
|
|||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "Wiki compiler, storing pages and history in a RCS";
|
description = "Wiki compiler, storing pages and history in a RCS";
|
||||||
homepage = "http://ikiwiki.info/";
|
homepage = "http://ikiwiki.info/";
|
||||||
license = lib.licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
platforms = lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = [ lib.maintainers.peti ];
|
maintainers = [ maintainers.peti ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user