Merge pull request #20855 from proteansec/pkgs/mail-notification

mail-notification: init at 5.4

authored by

Jaka Hudoklin and committed by
GitHub
f9ab3a2d de710794

+65
+53
pkgs/desktops/gnome-2/desktop/mail-notification/default.nix
··· 1 + { stdenv, fetchurl, 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 }: 2 + 3 + stdenv.mkDerivation rec { 4 + rev = "9ae8768"; 5 + version = "5.4"; 6 + name = "mail-notification-${version}"; 7 + 8 + src = fetchFromGitHub { 9 + inherit rev; 10 + owner = "epienbroek"; 11 + repo = "mail-notification"; 12 + sha256 = "1slb7gajn30vdaq0hf5rikwdly1npmg1cf83hpjs82xd98knl13d"; 13 + }; 14 + 15 + buildInputs = [ pkgconfig glib dbus_glib gmime libnotify libgnome_keyring openssl cyrus_sasl gnonlin sylpheed gob2 gettext intltool gnome2.GConf gnome2.libgnomeui dbus_glib gmime libnotify gnome2.gnome_keyring gnome2.scrollkeeper libxml2 gnome2.gnome_icon_theme hicolor_icon_theme tango-icon-theme ]; 16 + 17 + prePatch = '' 18 + sed -i -e '/jb_rule_set_install_message/d' -e '/jb_rule_add_install_command/d' jbsrc/jb.c 19 + 20 + # currently disable the check for missing sheme until a better solution 21 + # is found; needed, because otherwise the application doesn't even start 22 + # and fails saying it unable to find gconf scheme values. 23 + sed -i -e 's/(schema_missing)/(!schema_missing)/g' src/mn-conf.c 24 + ''; 25 + 26 + patches = [ 27 + ./patches/mail-notification-dont-link-against-bsd-compat.patch 28 + ]; 29 + 30 + patchFlags = "-p0"; 31 + NIX_CFLAGS_COMPILE = "-Wno-error"; 32 + 33 + preConfigure = "./jb configure prefix=$out"; 34 + 35 + postConfigure = '' 36 + substituteInPlace build/config \ 37 + --replace "omf-dir|string|1|${gnome2.scrollkeeper}/share/omf" "omf-dir|string|1|$out/share/omf" \ 38 + --replace "scrollkeeper-dir|string|1|${gnome2.scrollkeeper}/var/lib/scrollkeeper" "omf-dir|string|1|$out/var/lib/scrollkeeper" \ 39 + ''; 40 + 41 + buildPhase = "./jb build"; 42 + installPhase = "./jb install"; 43 + 44 + enableParallelBuilding = true; 45 + 46 + meta = with stdenv.lib; { 47 + description = "Tray status icon, which notifies us when new email arrives"; 48 + homepage = "http://www.nongnu.org/mailnotify/"; 49 + license = with licenses; [ gpl3 ]; 50 + platforms = platforms.unix; 51 + maintainers = [ maintainers.eleanor ]; 52 + }; 53 + }
+2
pkgs/top-level/all-packages.nix
··· 13745 13745 13746 13746 lyx = qt5.callPackage ../applications/misc/lyx { }; 13747 13747 13748 + mail-notification = callPackage ../desktops/gnome-2/desktop/mail-notification {}; 13749 + 13748 13750 magnetophonDSP = { 13749 13751 CharacterCompressor = callPackage ../applications/audio/magnetophonDSP/CharacterCompressor { }; 13750 13752 CompBus = callPackage ../applications/audio/magnetophonDSP/CompBus { };