mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
36 lines
1.3 KiB
Nix
36 lines
1.3 KiB
Nix
{ lib, stdenv, fetchurl, ncurses, gettext, python3, python3Packages, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "calcurse";
|
|
version = "4.8.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://calcurse.org/files/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-SKc2ZmzEtrUwEtc7OqcBUsGLQebHtIB/qw8WjWRa4yw=";
|
|
};
|
|
|
|
buildInputs = [ ncurses gettext python3 python3Packages.wrapPython ];
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
patchShebangs .
|
|
buildPythonPath "${python3Packages.httplib2} ${python3Packages.oauth2client}"
|
|
patchPythonScript $out/bin/calcurse-caldav
|
|
'';
|
|
|
|
meta = with 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.
|
|
'';
|
|
homepage = "https://calcurse.org/";
|
|
changelog = "https://git.calcurse.org/calcurse.git/plain/CHANGES.md?h=v${version}";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|