mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
Merge pull request #24461 from peterhoeg/f/gcalcli
gcalcli: fix notifications on linux
This commit is contained in:
commit
029c57f4a1
@ -1,13 +1,14 @@
|
||||
{ fetchFromGitHub, lib, pythonPackages }:
|
||||
{ stdenv, lib, fetchFromGitHub, pythonPackages
|
||||
, libnotify ? null }:
|
||||
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
version = "3.4.0";
|
||||
name = "gcalcli-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "insanum";
|
||||
repo = "gcalcli";
|
||||
rev = "v${version}";
|
||||
owner = "insanum";
|
||||
repo = "gcalcli";
|
||||
rev = "v${version}";
|
||||
sha256 = "171awccgnmfv4j7m2my9387sjy60g18kzgvscl6pzdid9fn9rrm8";
|
||||
};
|
||||
|
||||
@ -20,12 +21,23 @@ pythonPackages.buildPythonApplication rec {
|
||||
parsedatetime
|
||||
six
|
||||
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; {
|
||||
homepage = https://github.com/insanum/gcalcli;
|
||||
description = "CLI for Google Calendar";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.nocoolnametom ];
|
||||
maintainers = with maintainers; [ nocoolnametom ];
|
||||
inherit version;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user