2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, ncurses, gettext, python3, python3Packages, makeWrapper }:
|
2015-07-16 08:29:43 +02:00
|
|
|
|
2017-03-20 00:32:47 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "calcurse";
|
2021-04-28 05:25:14 +02:00
|
|
|
version = "4.7.1";
|
2015-07-16 08:29:43 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://calcurse.org/files/${pname}-${version}.tar.gz";
|
2021-04-28 05:25:14 +02:00
|
|
|
sha256 = "sha256-CnxV0HZ0Vp0WbAsOdYeyly09qBYM231gsdvSiVgDr7A=";
|
2015-07-16 08:29:43 +02:00
|
|
|
};
|
|
|
|
|
2019-05-12 11:15:39 +02:00
|
|
|
buildInputs = [ ncurses gettext python3 python3Packages.wrapPython ];
|
2017-03-20 00:32:47 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2015-07-16 08:29:43 +02:00
|
|
|
|
2017-03-20 00:32:47 +01:00
|
|
|
postInstall = ''
|
2019-05-12 11:15:39 +02:00
|
|
|
patchShebangs .
|
2021-02-03 13:47:05 +01:00
|
|
|
buildPythonPath "${python3Packages.httplib2} ${python3Packages.oauth2client}"
|
2019-05-12 11:15:39 +02:00
|
|
|
patchPythonScript $out/bin/calcurse-caldav
|
2017-12-26 22:52:18 +01:00
|
|
|
'';
|
2017-03-20 00:32:47 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2015-07-16 08:29:43 +02: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-02 09:58:50 +02:00
|
|
|
homepage = "https://calcurse.org/";
|
2017-03-20 00:32:47 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
2015-07-16 08:29:43 +02:00
|
|
|
};
|
|
|
|
}
|