2015-10-21 06:23:01 +01:00
|
|
|
{ fetchurl, stdenv, wrapGAppsHook
|
2016-09-11 22:24:51 +01:00
|
|
|
, curl, dbus, dbus_glib, enchant, gtk2, gnutls, gnupg, gpgme, hicolor_icon_theme
|
|
|
|
, libarchive, libcanberra_gtk2, libetpan, libnotify, libsoup, libxml2, networkmanager
|
2015-09-30 09:31:45 +01:00
|
|
|
, openldap , perl, pkgconfig, poppler, python, shared_mime_info, webkitgtk2
|
2015-10-21 06:23:01 +01:00
|
|
|
, glib_networking, gsettings_desktop_schemas
|
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
|
2015-12-12 12:31:07 +00:00
|
|
|
, enablePgp ? true
|
2014-09-29 21:21:56 +01:00
|
|
|
, 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;
|
|
|
|
|
2016-01-30 20:08:09 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-09-29 21:21:56 +01:00
|
|
|
name = "claws-mail-${version}";
|
2016-08-14 21:54:07 +01:00
|
|
|
version = "3.14.0";
|
2014-09-29 21:21:56 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The user-friendly, lightweight, and fast email client";
|
|
|
|
homepage = http://www.claws-mail.org/;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2015-10-19 03:12:52 +01:00
|
|
|
maintainers = with maintainers; [ khumba fpletz ];
|
2014-09-29 21:21:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
2015-10-03 11:42:50 +01:00
|
|
|
url = "http://www.claws-mail.org/download.php?file=releases/claws-mail-${version}.tar.xz";
|
2016-08-14 21:54:07 +01:00
|
|
|
sha256 = "0nfchgga3ir91s8rky0a0vnz8cgj2f6h716wh3cmb466a01xfss6";
|
2014-09-29 21:21:56 +01:00
|
|
|
};
|
|
|
|
|
2015-09-18 12:20:16 +01:00
|
|
|
patches = [ ./mime.patch ];
|
|
|
|
|
2015-09-27 19:33:37 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/procmime.c \
|
|
|
|
--subst-var-by MIMEROOTDIR ${shared_mime_info}/share
|
|
|
|
'';
|
|
|
|
|
2014-09-29 21:21:56 +01:00
|
|
|
buildInputs =
|
2016-09-11 22:24:51 +01:00
|
|
|
[ curl dbus dbus_glib gtk2 gnutls gsettings_desktop_schemas hicolor_icon_theme
|
2015-12-13 16:08:24 +00:00
|
|
|
libetpan perl pkgconfig python wrapGAppsHook glib_networking
|
2015-09-30 09:31:45 +01:00
|
|
|
]
|
2014-09-29 21:21:56 +01:00
|
|
|
++ optional enableSpellcheck enchant
|
|
|
|
++ optionals (enablePgp || enablePluginSmime) [ gnupg gpgme ]
|
|
|
|
++ optional enablePluginArchive libarchive
|
2016-09-11 22:24:51 +01:00
|
|
|
++ optional enablePluginNotificationSounds libcanberra_gtk2
|
2014-09-29 21:21:56 +01:00
|
|
|
++ 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-12-13 15:34:31 +00:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared_mime_info}/share")
|
|
|
|
'';
|
2015-10-21 06:23:01 +01:00
|
|
|
|
2015-09-12 07:07:31 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
cp claws-mail.desktop $out/share/applications
|
|
|
|
'';
|
2014-09-29 21:21:56 +01:00
|
|
|
}
|