2017-12-26 22:52:18 +01:00
|
|
|
{ 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 {
|
|
|
|
name = "calcurse-${version}";
|
2017-12-26 22:52:18 +01:00
|
|
|
version = "4.3.0";
|
2015-07-16 08:29:43 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-03-20 00:32:47 +01:00
|
|
|
url = "http://calcurse.org/files/${name}.tar.gz";
|
2017-12-26 22:52:18 +01:00
|
|
|
sha256 = "16jzg0nasnxdlz23i121x41pq5kbxmjzk52c5d863rg117fc7v1i";
|
2015-07-16 08:29:43 +02:00
|
|
|
};
|
|
|
|
|
2017-12-26 22:52:18 +01:00
|
|
|
buildInputs = [ ncurses gettext python3 ];
|
2017-03-20 00:32:47 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2015-07-16 08:29:43 +02:00
|
|
|
|
2017-12-26 22:52:18 +01:00
|
|
|
# Build Python environment with httplib2 for calcurse-caldav
|
|
|
|
pythonEnv = python3Packages.python.buildEnv.override {
|
|
|
|
extraLibs = [ python3Packages.httplib2 ];
|
|
|
|
};
|
2018-02-21 10:29:38 +01:00
|
|
|
propagatedBuildInputs = [ pythonEnv ];
|
2017-12-26 22:52:18 +01:00
|
|
|
|
2017-03-20 00:32:47 +01:00
|
|
|
postInstall = ''
|
2017-12-26 22:52:18 +01:00
|
|
|
substituteInPlace $out/bin/calcurse-caldav --replace /usr/bin/python3 ${pythonEnv}/bin/python3
|
|
|
|
'';
|
2017-03-20 00:32:47 +01:00
|
|
|
|
|
|
|
meta = with stdenv.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.
|
|
|
|
'';
|
|
|
|
homepage = http://calcurse.org/;
|
2017-03-20 00:32:47 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
2015-07-16 08:29:43 +02:00
|
|
|
};
|
|
|
|
}
|