2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, ncurses, gettext, python3, python3Packages, makeWrapper }:
|
2015-07-16 06:29:43 +00:00
|
|
|
|
2017-03-19 23:32:47 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "calcurse";
|
2022-04-22 09:59:15 +00:00
|
|
|
version = "4.8.0";
|
2015-07-16 06:29:43 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://calcurse.org/files/${pname}-${version}.tar.gz";
|
2022-04-22 09:59:15 +00:00
|
|
|
sha256 = "sha256-SKc2ZmzEtrUwEtc7OqcBUsGLQebHtIB/qw8WjWRa4yw=";
|
2015-07-16 06:29:43 +00:00
|
|
|
};
|
|
|
|
|
2019-05-12 09:15:39 +00:00
|
|
|
buildInputs = [ ncurses gettext python3 python3Packages.wrapPython ];
|
2017-03-19 23:32:47 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2015-07-16 06:29:43 +00:00
|
|
|
|
2017-03-19 23:32:47 +00:00
|
|
|
postInstall = ''
|
2019-05-12 09:15:39 +00:00
|
|
|
patchShebangs .
|
2021-02-03 12:47:05 +00:00
|
|
|
buildPythonPath "${python3Packages.httplib2} ${python3Packages.oauth2client}"
|
2019-05-12 09:15:39 +00:00
|
|
|
patchPythonScript $out/bin/calcurse-caldav
|
2017-12-26 21:52:18 +00:00
|
|
|
'';
|
2017-03-19 23:32:47 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-07-16 06:29:43 +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-02 07:58:50 +00:00
|
|
|
homepage = "https://calcurse.org/";
|
2022-04-23 04:20:00 +00:00
|
|
|
changelog = "https://git.calcurse.org/calcurse.git/plain/CHANGES.md?h=v${version}";
|
2017-03-19 23:32:47 +00:00
|
|
|
license = licenses.bsd2;
|
2022-04-23 04:20:00 +00:00
|
|
|
platforms = platforms.unix;
|
2015-07-16 06:29:43 +00:00
|
|
|
};
|
|
|
|
}
|