3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/mailreaders/mailnag/default.nix

68 lines
1.4 KiB
Nix
Raw Normal View History

{ 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
}:
pythonPackages.buildPythonApplication rec {
pname = "mailnag";
version = "2.0.0";
2015-06-14 17:31:48 +01:00
src = fetchFromGitHub {
owner = "pulb";
repo = "mailnag";
rev = "v${version}";
sha256 = "0q97v9i96br22z3h6r2mz79i68ib8m8x42yxky78szfrf8j60i30";
2015-06-14 17:31:48 +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 = [
gtk3
gdk-pixbuf
glib
libnotify
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gobject-introspection
libsecret
];
2015-06-14 17:31:48 +01:00
nativeBuildInputs = [
gettext
wrapGAppsHook
];
2017-09-14 13:32:08 +01:00
propagatedBuildInputs = with pythonPackages; [
gsettings-desktop-schemas
pygobject3
dbus-python
pyxdg
];
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";
homepage = "https://github.com/pulb/mailnag";
2015-06-14 17:31:48 +01:00
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ doronbehar ];
2015-06-14 17:31:48 +01:00
};
}