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";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "4.8.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://calcurse.org/files/${pname}-${version}.tar.gz";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-2GuzcBT9abjYPMuQSsl5xrjd9Z7j28gPWidFJeTVgwo=";
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Calendar and scheduling application for the command line";
|
2020-04-24 23:36:52 +00:00
|
|
|
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/";
|
2022-04-27 09:35:20 +00:00
|
|
|
changelog = "https://git.calcurse.org/calcurse.git/plain/CHANGES.md?h=v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
2022-04-27 09:35:20 +00:00
|
|
|
platforms = platforms.unix;
|
2023-08-22 20:05:09 +00:00
|
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|