2017-12-26 21:52:18 +00:00
|
|
|
{ stdenv, fetchurl, ncurses, gettext, python3, python3Packages, makeWrapper }:
|
2015-07-16 07:29:43 +01:00
|
|
|
|
2017-03-19 23:32:47 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "calcurse-${version}";
|
2019-02-24 00:38:03 +00:00
|
|
|
version = "4.4.0";
|
2015-07-16 07:29:43 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://calcurse.org/files/${name}.tar.gz";
|
2019-02-24 00:38:03 +00:00
|
|
|
sha256 = "0vw2xi6a2lrhrb8n55zq9lv4mzxhby4xdf3hmi1vlfpyrpdwkjzd";
|
2015-07-16 07:29:43 +01:00
|
|
|
};
|
|
|
|
|
2019-05-12 10:15:39 +01:00
|
|
|
buildInputs = [ ncurses gettext python3 python3Packages.wrapPython ];
|
2017-03-19 23:32:47 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2015-07-16 07:29:43 +01:00
|
|
|
|
2017-03-19 23:32:47 +00:00
|
|
|
postInstall = ''
|
2019-05-12 10:15:39 +01:00
|
|
|
patchShebangs .
|
|
|
|
buildPythonPath ${python3Packages.httplib2}
|
|
|
|
patchPythonScript $out/bin/calcurse-caldav
|
2017-12-26 21:52:18 +00:00
|
|
|
'';
|
2017-03-19 23:32:47 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-07-16 07:29:43 +01: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.
|
|
|
|
'';
|
|
|
|
homepage = http://calcurse.org/;
|
2017-03-19 23:32:47 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
2015-07-16 07:29:43 +01:00
|
|
|
};
|
|
|
|
}
|