2014-09-29 21:21:56 +01:00
|
|
|
{ fetchurl, stdenv
|
2015-09-30 09:31:45 +01:00
|
|
|
, curl, dbus, dbus_glib, enchant, gtk, gnutls, gnupg, gpgme, hicolor_icon_theme
|
|
|
|
, libarchive, libcanberra, libetpan, libnotify, libsoup, libxml2, networkmanager
|
|
|
|
, openldap , perl, pkgconfig, poppler, python, shared_mime_info, webkitgtk2
|
2014-09-29 21:21:56 +01:00
|
|
|
|
|
|
|
# Build options
|
|
|
|
# TODO: A flag to build the manual.
|
|
|
|
# TODO: Plugins that complain about their missing dependencies, even when
|
|
|
|
# provided:
|
|
|
|
# gdata requires libgdata
|
|
|
|
# geolocation requires libchamplain
|
|
|
|
# python requires python
|
|
|
|
, enableLdap ? false
|
|
|
|
, enableNetworkManager ? false
|
|
|
|
, enablePgp ? false
|
|
|
|
, enablePluginArchive ? false
|
|
|
|
, enablePluginFancy ? false
|
|
|
|
, enablePluginNotificationDialogs ? true
|
|
|
|
, enablePluginNotificationSounds ? true
|
|
|
|
, enablePluginPdf ? false
|
|
|
|
, enablePluginRavatar ? false
|
|
|
|
, enablePluginRssyl ? false
|
|
|
|
, enablePluginSmime ? false
|
|
|
|
, enablePluginSpamassassin ? false
|
|
|
|
, enablePluginSpamReport ? false
|
|
|
|
, enablePluginVcalendar ? false
|
|
|
|
, enableSpellcheck ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
2014-12-03 15:21:47 +00:00
|
|
|
let version = "3.11.1"; in
|
2014-09-29 21:21:56 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "claws-mail-${version}";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The user-friendly, lightweight, and fast email client";
|
|
|
|
homepage = http://www.claws-mail.org/;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2015-09-12 06:38:57 +01:00
|
|
|
maintainers = [ maintainers.khumba ];
|
2015-09-30 17:50:51 +01:00
|
|
|
priority = 10; # Resolve the conflict with the share/mime link we create.
|
2014-09-29 21:21:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://downloads.sourceforge.net/project/claws-mail/Claws%20Mail/${version}/claws-mail-${version}.tar.bz2";
|
2014-12-03 15:21:47 +00:00
|
|
|
sha256 = "0w13xzri9d3165qsxf1dig1f0gxn3ib4lysfc9pgi4zpyzd0zgrw";
|
2014-09-29 21:21:56 +01:00
|
|
|
};
|
|
|
|
|
2015-09-18 12:20:16 +01:00
|
|
|
patches = [ ./mime.patch ];
|
|
|
|
|
2014-09-29 21:21:56 +01:00
|
|
|
buildInputs =
|
2015-09-30 09:31:45 +01:00
|
|
|
[ curl dbus dbus_glib gtk gnutls hicolor_icon_theme
|
|
|
|
libetpan perl pkgconfig python
|
|
|
|
]
|
2014-09-29 21:21:56 +01:00
|
|
|
++ optional enableSpellcheck enchant
|
|
|
|
++ optionals (enablePgp || enablePluginSmime) [ gnupg gpgme ]
|
|
|
|
++ optional enablePluginArchive libarchive
|
|
|
|
++ optional enablePluginNotificationSounds libcanberra
|
|
|
|
++ optional enablePluginNotificationDialogs libnotify
|
|
|
|
++ optional enablePluginFancy libsoup
|
|
|
|
++ optional enablePluginRssyl libxml2
|
|
|
|
++ optional enableNetworkManager networkmanager
|
|
|
|
++ optional enableLdap openldap
|
|
|
|
++ optional enablePluginPdf poppler
|
|
|
|
++ optional enablePluginFancy webkitgtk2;
|
|
|
|
|
|
|
|
configureFlags =
|
|
|
|
optional (!enableLdap) "--disable-ldap"
|
|
|
|
++ optional (!enableNetworkManager) "--disable-networkmanager"
|
|
|
|
++ optionals (!enablePgp) [
|
|
|
|
"--disable-pgpcore-plugin"
|
|
|
|
"--disable-pgpinline-plugin"
|
|
|
|
"--disable-pgpmime-plugin"
|
|
|
|
]
|
|
|
|
++ optional (!enablePluginArchive) "--disable-archive-plugin"
|
|
|
|
++ optional (!enablePluginFancy) "--disable-fancy-plugin"
|
|
|
|
++ optional (!enablePluginPdf) "--disable-pdf_viewer-plugin"
|
|
|
|
++ optional (!enablePluginRavatar) "--disable-libravatar-plugin"
|
|
|
|
++ optional (!enablePluginRssyl) "--disable-rssyl-plugin"
|
|
|
|
++ optional (!enablePluginSmime) "--disable-smime-plugin"
|
|
|
|
++ optional (!enablePluginSpamassassin) "--disable-spamassassin-plugin"
|
|
|
|
++ optional (!enablePluginSpamReport) "--disable-spam_report-plugin"
|
|
|
|
++ optional (!enablePluginVcalendar) "--disable-vcalendar-plugin"
|
|
|
|
++ optional (!enableSpellcheck) "--disable-enchant";
|
2015-09-12 07:07:31 +01:00
|
|
|
|
2015-09-18 12:20:27 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-09-12 07:07:31 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
cp claws-mail.desktop $out/share/applications
|
2015-09-18 12:20:16 +01:00
|
|
|
|
|
|
|
ln -sT ${shared_mime_info}/share/mime $out/share/mime
|
2015-09-12 07:07:31 +01:00
|
|
|
'';
|
2014-09-29 21:21:56 +01:00
|
|
|
}
|