4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
35 lines
1.2 KiB
Nix
35 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, ncurses, gettext, python3, python3Packages, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "calcurse";
|
|
version = "4.7.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://calcurse.org/files/${pname}-${version}.tar.gz";
|
|
sha256 = "0dc4bka2l9z03bnlygsnl06l1zi2wbn29rkc02b13x2kdab7arpg";
|
|
};
|
|
|
|
buildInputs = [ ncurses gettext python3 python3Packages.wrapPython ];
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
patchShebangs .
|
|
buildPythonPath ${python3Packages.httplib2}
|
|
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/";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|