2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl, ncurses, gettext, python3, python3Packages, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "calcurse";
|
2020-10-27 00:29:36 +00:00
|
|
|
version = "4.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://calcurse.org/files/${pname}-${version}.tar.gz";
|
2020-10-27 00:29:36 +00:00
|
|
|
sha256 = "0dc4bka2l9z03bnlygsnl06l1zi2wbn29rkc02b13x2kdab7arpg";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses gettext python3 python3Packages.wrapPython ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
patchShebangs .
|
|
|
|
buildPythonPath ${python3Packages.httplib2}
|
|
|
|
patchPythonScript $out/bin/calcurse-caldav
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|