mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
35 lines
1.2 KiB
Nix
35 lines
1.2 KiB
Nix
{ stdenv, fetchurl, ncurses, gettext, python3, python3Packages, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "calcurse";
|
|
version = "4.5.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://calcurse.org/files/${pname}-${version}.tar.gz";
|
|
sha256 = "1vjwcmp51h7dsvwn0qx93w9chp3wp970v7d9mjhk7jyamcbfywn3";
|
|
};
|
|
|
|
buildInputs = [ ncurses gettext python3 python3Packages.wrapPython ];
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
patchShebangs .
|
|
buildPythonPath ${python3Packages.httplib2}
|
|
patchPythonScript $out/bin/calcurse-caldav
|
|
'';
|
|
|
|
meta = with stdenv.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 = http://calcurse.org/;
|
|
license = licenses.bsd2;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|