2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, ncurses, gettext, python3, python3Packages, makeWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "calcurse";
|
2021-05-03 20:48:10 +00:00
|
|
|
version = "4.7.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://calcurse.org/files/${pname}-${version}.tar.gz";
|
2021-05-03 20:48:10 +00:00
|
|
|
sha256 = "sha256-CnxV0HZ0Vp0WbAsOdYeyly09qBYM231gsdvSiVgDr7A=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses gettext python3 python3Packages.wrapPython ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
patchShebangs .
|
2021-02-05 17:12:51 +00:00
|
|
|
buildPythonPath "${python3Packages.httplib2} ${python3Packages.oauth2client}"
|
2020-04-24 23:36:52 +00:00
|
|
|
patchPythonScript $out/bin/calcurse-caldav
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A calendar and scheduling application for the command line";
|
|
|
|
longDescription = ''
|
|
|
|
calcurse is a calendar and scheduling application for the command line. It helps
|
|
|
|
keep track of events, appointments and everyday tasks. A configurable notification
|
|
|
|
system reminds users of upcoming deadlines, the curses based interface can be
|
|
|
|
customized to suit user needs and a very powerful set of command line options can
|
|
|
|
be used to filter and format appointments, making it suitable for use in scripts.
|
|
|
|
'';
|
2020-10-07 09:15:18 +00:00
|
|
|
homepage = "https://calcurse.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|