nixpkgs/pkgs/applications/networking/mailreaders/mailnag/default.nix
gnidorah 27bcd6c426 mailnag: fix working (#30358)
* mailnag: fix working

* mailnag: use wrapGAppsHook; add icon theme
2017-10-14 12:07:44 +01:00

43 lines
1.2 KiB
Nix

{ stdenv, fetchurl, gettext, gtk3, pythonPackages
, gdk_pixbuf, libnotify, gst_all_1
, libgnome_keyring3, networkmanager
, wrapGAppsHook, gnome3
, withGnomeKeyring ? false
, withNetworkManager ? true
}:
pythonPackages.buildPythonApplication rec {
name = "mailnag-${version}";
version = "1.2.1";
src = fetchurl {
url = "https://github.com/pulb/mailnag/archive/v${version}.tar.gz";
sha256 = "ec7ac027d93bc7d88fc270858f5a181453a6ff07f43cab20563d185818801fee";
};
buildInputs = [
gettext gtk3 gdk_pixbuf libnotify gst_all_1.gstreamer
gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gnome3.defaultIconTheme
] ++ stdenv.lib.optional withGnomeKeyring libgnome_keyring3
++ stdenv.lib.optional withNetworkManager networkmanager;
nativeBuildInputs = [
wrapGAppsHook
];
propagatedBuildInputs = with pythonPackages; [
pygobject3 dbus-python pyxdg
];
doCheck = false;
meta = with stdenv.lib; {
description = "An extensible mail notification daemon";
homepage = https://github.com/pulb/mailnag;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ jgeerds ];
};
}