2017-10-14 12:07:44 +01:00
|
|
|
{ stdenv, fetchurl, gettext, gtk3, pythonPackages
|
2019-05-22 12:03:39 +01:00
|
|
|
, gdk-pixbuf, libnotify, gst_all_1
|
2018-07-21 01:44:44 +01:00
|
|
|
, libgnome-keyring3
|
2017-10-14 12:07:44 +01:00
|
|
|
, wrapGAppsHook, gnome3
|
2017-10-19 20:00:17 +01:00
|
|
|
# otherwise passwords are stored unencrypted
|
|
|
|
, withGnomeKeyring ? true
|
2015-06-14 17:31:48 +01:00
|
|
|
}:
|
|
|
|
|
2017-10-17 11:38:18 +01:00
|
|
|
let
|
|
|
|
inherit (pythonPackages) python;
|
|
|
|
in pythonPackages.buildPythonApplication rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mailnag";
|
2019-04-02 00:38:06 +01:00
|
|
|
version = "1.3.0";
|
2015-06-14 17:31:48 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/pulb/mailnag/archive/v${version}.tar.gz";
|
2019-04-02 00:38:06 +01:00
|
|
|
sha256 = "0cp5pad6jzd5c14pddbi9ap5bi78wjhk1x2p0gbblmvmcasw309s";
|
2015-06-14 17:31:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-05-22 12:03:39 +01:00
|
|
|
gtk3 gdk-pixbuf libnotify gst_all_1.gstreamer
|
2015-06-14 17:31:48 +01:00
|
|
|
gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
|
2017-10-14 12:07:44 +01:00
|
|
|
gst_all_1.gst-plugins-bad
|
2019-02-13 21:47:50 +00:00
|
|
|
gnome3.adwaita-icon-theme
|
2018-02-25 02:23:58 +00:00
|
|
|
] ++ stdenv.lib.optional withGnomeKeyring libgnome-keyring3;
|
2015-06-14 17:31:48 +01:00
|
|
|
|
2017-10-14 12:07:44 +01:00
|
|
|
nativeBuildInputs = [
|
2019-02-15 09:08:27 +00:00
|
|
|
gettext
|
2017-10-14 12:07:44 +01:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2017-09-14 13:32:08 +01:00
|
|
|
|
2017-10-14 12:07:44 +01:00
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
|
|
pygobject3 dbus-python pyxdg
|
|
|
|
];
|
2017-09-14 13:32:08 +01:00
|
|
|
|
2017-10-17 11:38:18 +01:00
|
|
|
buildPhase = "";
|
|
|
|
|
|
|
|
installPhase = "${python}/bin/python setup.py install --prefix=$out";
|
|
|
|
|
2017-09-14 13:32:08 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2015-06-14 17:31:48 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An extensible mail notification daemon";
|
|
|
|
homepage = https://github.com/pulb/mailnag;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2019-03-12 22:45:33 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2015-06-14 17:31:48 +01:00
|
|
|
};
|
|
|
|
}
|