Skip to content

Commit

Permalink
Merge pull request #30501 from gnidorah/mailnag
Browse files Browse the repository at this point in the history
mailnag: use setup.py
  • Loading branch information
Mic92 authored Nov 7, 2017
2 parents 45108b4 + 5c06711 commit 2e4282d
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions pkgs/applications/networking/mailreaders/mailnag/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
, gdk_pixbuf, libnotify, gst_all_1
, libgnome_keyring3, networkmanager
, wrapGAppsHook, gnome3
, withGnomeKeyring ? false
, withNetworkManager ? true
# otherwise passwords are stored unencrypted
, withGnomeKeyring ? true
}:

pythonPackages.buildPythonApplication rec {
let
inherit (pythonPackages) python;
in pythonPackages.buildPythonApplication rec {
name = "mailnag-${version}";
version = "1.2.1";

Expand All @@ -20,8 +22,7 @@ pythonPackages.buildPythonApplication rec {
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;
] ++ stdenv.lib.optional withGnomeKeyring libgnome_keyring3;

nativeBuildInputs = [
wrapGAppsHook
Expand All @@ -31,6 +32,10 @@ pythonPackages.buildPythonApplication rec {
pygobject3 dbus-python pyxdg
];

buildPhase = "";

installPhase = "${python}/bin/python setup.py install --prefix=$out";

doCheck = false;

meta = with stdenv.lib; {
Expand Down

0 comments on commit 2e4282d

Please sign in to comment.