2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, glib, gnome2, dbus-glib, gmime, libnotify, libgnome-keyring, openssl, cyrus_sasl, gnonlin, sylpheed, gob2, gettext, intltool, libxml2, hicolor-icon-theme, tango-icon-theme }:
|
2016-12-02 10:47:35 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
rev = "9ae8768";
|
|
|
|
version = "5.4";
|
|
|
|
name = "mail-notification-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "epienbroek";
|
|
|
|
repo = "mail-notification";
|
|
|
|
sha256 = "1slb7gajn30vdaq0hf5rikwdly1npmg1cf83hpjs82xd98knl13d";
|
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-08-08 20:36:32 +01:00
|
|
|
buildInputs = [ glib dbus-glib gmime libnotify libgnome-keyring openssl cyrus_sasl gnonlin sylpheed gob2 gettext intltool gnome2.GConf gnome2.libgnomeui dbus-glib gmime libnotify gnome2.scrollkeeper libxml2 gnome2.gnome_icon_theme hicolor-icon-theme tango-icon-theme ];
|
2016-12-02 10:47:35 +00:00
|
|
|
|
|
|
|
prePatch = ''
|
2016-12-04 21:25:09 +00:00
|
|
|
sed -i -e '/jb_rule_set_install_message/d' -e '/jb_rule_add_install_command/d' jbsrc/jb.c
|
2016-12-02 10:47:35 +00:00
|
|
|
|
2016-12-04 21:25:09 +00:00
|
|
|
# currently disable the check for missing sheme until a better solution
|
|
|
|
# is found; needed, because otherwise the application doesn't even start
|
|
|
|
# and fails saying it unable to find gconf scheme values.
|
|
|
|
sed -i -e 's/(schema_missing)/(!schema_missing)/g' src/mn-conf.c
|
2016-12-02 10:47:35 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./patches/mail-notification-dont-link-against-bsd-compat.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
patchFlags = "-p0";
|
2016-12-04 21:25:09 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
2016-12-02 10:47:35 +00:00
|
|
|
|
2016-12-04 21:25:09 +00:00
|
|
|
preConfigure = "./jb configure prefix=$out";
|
2016-12-02 10:47:35 +00:00
|
|
|
|
|
|
|
postConfigure = ''
|
2016-12-04 21:25:09 +00:00
|
|
|
substituteInPlace build/config \
|
|
|
|
--replace "omf-dir|string|1|${gnome2.scrollkeeper}/share/omf" "omf-dir|string|1|$out/share/omf" \
|
|
|
|
--replace "scrollkeeper-dir|string|1|${gnome2.scrollkeeper}/var/lib/scrollkeeper" "omf-dir|string|1|$out/var/lib/scrollkeeper" \
|
2016-12-02 10:47:35 +00:00
|
|
|
'';
|
|
|
|
|
2016-12-04 21:25:09 +00:00
|
|
|
buildPhase = "./jb build";
|
|
|
|
installPhase = "./jb install";
|
2016-12-02 10:47:35 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Tray status icon, which notifies us when new email arrives";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://www.nongnu.org/mailnotify/;
|
2016-12-04 21:25:09 +00:00
|
|
|
license = with licenses; [ gpl3 ];
|
2016-12-02 10:47:35 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.eleanor ];
|
|
|
|
};
|
|
|
|
}
|