2020-04-25 02:03:21 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gettext
|
|
|
|
, gtk3
|
|
|
|
, pythonPackages
|
|
|
|
, gdk-pixbuf
|
|
|
|
, libnotify
|
|
|
|
, gst_all_1
|
|
|
|
, libsecret
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
2015-06-14 17:31:48 +01:00
|
|
|
}:
|
|
|
|
|
2020-04-25 02:03:21 +01:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mailnag";
|
2020-04-25 02:03:21 +01:00
|
|
|
version = "2.0.0";
|
2015-06-14 17:31:48 +01:00
|
|
|
|
2020-04-25 02:03:21 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pulb";
|
|
|
|
repo = "mailnag";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0q97v9i96br22z3h6r2mz79i68ib8m8x42yxky78szfrf8j60i30";
|
2015-06-14 17:31:48 +01:00
|
|
|
};
|
2020-04-25 02:03:21 +01:00
|
|
|
preFixup = ''
|
|
|
|
substituteInPlace $out/${pythonPackages.python.sitePackages}/Mailnag/common/dist_cfg.py \
|
|
|
|
--replace "/usr/" $out/
|
|
|
|
for desktop_file in $out/share/applications/*.desktop; do
|
|
|
|
substituteInPlace "$desktop_file" \
|
|
|
|
--replace "/usr/bin" $out/bin
|
|
|
|
done
|
|
|
|
'';
|
2015-06-14 17:31:48 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
2020-04-25 02:03:21 +01:00
|
|
|
gtk3
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
libnotify
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
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
|
2020-04-25 02:03:21 +01:00
|
|
|
gobject-introspection
|
|
|
|
libsecret
|
|
|
|
];
|
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; [
|
2020-04-25 02:03:21 +01:00
|
|
|
gsettings-desktop-schemas
|
|
|
|
pygobject3
|
|
|
|
dbus-python
|
|
|
|
pyxdg
|
2017-10-14 12:07:44 +01:00
|
|
|
];
|
2017-09-14 13:32:08 +01:00
|
|
|
|
2015-06-14 17:31:48 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An extensible mail notification daemon";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pulb/mailnag";
|
2015-06-14 17:31:48 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2020-04-25 02:03:21 +01:00
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
2015-06-14 17:31:48 +01:00
|
|
|
};
|
|
|
|
}
|