gcalcli: fix notifications on linux
Couple of things: - fix the path to notify-send - add a standard icon to the notification - rename the notification from "gcalcli" to "Calendar" Lastly, there are no tests, so do not try to run them.
This commit is contained in:
parent
53a2baabbe
commit
f67ec45de6
@ -1,4 +1,5 @@
|
|||||||
{ fetchFromGitHub, lib, pythonPackages }:
|
{ stdenv, lib, fetchFromGitHub, pythonPackages
|
||||||
|
, libnotify ? null }:
|
||||||
|
|
||||||
pythonPackages.buildPythonApplication rec {
|
pythonPackages.buildPythonApplication rec {
|
||||||
version = "3.4.0";
|
version = "3.4.0";
|
||||||
@ -20,12 +21,23 @@ pythonPackages.buildPythonApplication rec {
|
|||||||
parsedatetime
|
parsedatetime
|
||||||
six
|
six
|
||||||
vobject
|
vobject
|
||||||
] ++ lib.optional (!pythonPackages.isPy3k) futures;
|
]
|
||||||
|
++ lib.optional (!pythonPackages.isPy3k) futures;
|
||||||
|
|
||||||
|
# there are no tests as of 3.4.0
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
postInstall = lib.optionalString stdenv.isLinux ''
|
||||||
|
substituteInPlace $out/bin/gcalcli \
|
||||||
|
--replace "command = 'notify-send -u critical -a gcalcli %s'" \
|
||||||
|
"command = '${libnotify}/bin/notify-send -i view-calendar-upcoming-events -u critical -a Calendar %s'"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = https://github.com/insanum/gcalcli;
|
homepage = https://github.com/insanum/gcalcli;
|
||||||
description = "CLI for Google Calendar";
|
description = "CLI for Google Calendar";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.nocoolnametom ];
|
maintainers = with maintainers; [ nocoolnametom ];
|
||||||
|
inherit version;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user