1 { lib, stdenv, fetchFromGitHub, fetchpatch, makeWrapper, perl, ncurses5, taskwarrior2 }:
3 stdenv.mkDerivation rec {
4 version = "2020-12-17";
7 src = fetchFromGitHub {
10 rev = "a182661fbcc097a933d5e8cce3922eb1734a563e";
11 sha256 = "0jrv2k1yizfdjndbl06lmy2bb62ky2rjdk308967j31c5kqqnw56";
14 # Pull pending upstream inclusion for ncurses-6.3:
15 # https://github.com/lharding/tasknc/pull/57
18 name = "ncurses-6.3.patch";
19 url = "https://github.com/lharding/tasknc/commit/f74ea0641e9bf287acf22fac9f6eeea571b01800.patch";
20 sha256 = "18a90zj85sw2zfnfcv055nvi0lx3h8lcgsyabdfk94ksn78pygrv";
26 perl # For generating the man pages with pod2man
29 buildInputs = [ ncurses5 ];
31 hardeningDisable = [ "format" ];
33 buildFlags = [ "VERSION=${version}" ];
37 mkdir -p $out/share/man/man1
38 mkdir -p $out/share/tasknc
40 DESTDIR=$out PREFIX= MANPREFIX=/share/man make install
42 wrapProgram $out/bin/tasknc --prefix PATH : ${taskwarrior2}/bin
47 homepage = "https://github.com/lharding/tasknc";
48 description = "Ncurses wrapper around taskwarrior";
49 mainProgram = "tasknc";
50 maintainers = with maintainers; [ matthiasbeyer ];
51 platforms = platforms.linux; # Cannot test others
52 license = licenses.mit;