git.iko.soy/typeable/nixpkgs
on master help sign in
calcurse: 4.0.0 -> 4.2.2
commit86571294f5196af933146ce6e53fb02f9ef57ddf authorndowens <ndowens04@gmail.com> dateSun 19 Mar 2017, 18:32 (10 years ago) parent4385a67
1 file changed+15−10
pkgs/applications/misc/calcurse/default.nix+15−10
pkgs/applications/misc/calcurse/default.nix+15−10
@@ -1,18 +1,23 @@
1−{stdenv, fetchurl, ncurses, gettext}:
1+{stdenv, fetchurl, ncurses, gettext, python3, makeWrapper }:
22
3−stdenv.mkDerivation {
4− name = "calcurse-4.0.0";
3+stdenv.mkDerivation rec {
4+ name = "calcurse-${version}";
5+ version = "4.2.2";
56
67 src = fetchurl {
7− url = http://calcurse.org/files/calcurse-4.0.0.tar.gz;
8− sha256 = "0d33cpkbhyidvm3xx6iw9ljqdvl6477c2kcwix3bs63nj0ch06v2";
8+ url = "http://calcurse.org/files/${name}.tar.gz";
9+ sha256 = "0il0y06akdqgy0f9p40m4x6arn66nh7sr1w1i41bszycs7div266";
910 };
1011
11− buildInputs = [ncurses gettext];
12+ buildInputs = [ncurses gettext python3 ];
13+ nativeBuildInputs = [ makeWrapper ];
1214
13− meta = {
15+ postInstall = ''
16+ makeWrapper ${python3}/bin/python3 $out/bin/calcurse-caldav
17+ '';
18+
19+ meta = with stdenv.lib; {
1420 description = "A calendar and scheduling application for the command line";
15− version = "4.0.0";
1621 longDescription = ''
1722 calcurse is a calendar and scheduling application for the command line. It helps
1823 keep track of events, appointments and everyday tasks. A configurable notification
@@ -21,7 +26,7 @@ stdenv.mkDerivation {
2126 be used to filter and format appointments, making it suitable for use in scripts.
2227 '';
2328 homepage = http://calcurse.org/;
24− license = stdenv.lib.licenses.bsd2;
25− platforms = stdenv.lib.platforms.linux;
29+ license = licenses.bsd2;
30+ platforms = platforms.linux;
2631 };
2732}