···1-{ stdenv, fetchurl, taskwarrior, perl, ncurses }:
23stdenv.mkDerivation rec {
4- version = "0.8";
5 name = "tasknc-${version}";
67- src = fetchurl {
8- url = "https://github.com/mjheagle8/tasknc/archive/v${version}.tar.gz";
9- sha256 = "0max5schga9hmf3vfqk2ic91dr6raxglyyjcqchzla280kxn5c28";
0010 };
11000000012 hardeningDisable = [ "format" ];
1314- #
15- # I know this is ugly, but the Makefile does strange things in this package,
16- # so we have to:
17- #
18- # 1. Remove the "doc" task dependency from the "all" target
19- # 2. Remove the "tasknc.1" task dependency from the "install" target
20- # 3. Remove the installing of the tasknc.1 file from the install target as
21- # we just removed the build target for it.
22- #
23- # TODO : One could also provide a patch for the doc/manual.pod file so it
24- # actually builds, but I'm not familiar with this, so this is the faster
25- # approach for me. We have no manpage, though.
26- #
27- preConfigure = ''
28- sed -i -r 's,(all)(.*)doc,\1\2,' Makefile
29- sed -i -r 's,(install)(.*)tasknc\.1,\1\2,' Makefile
30- sed -i -r 's,install\ -D\ -m644\ tasknc\.1\ (.*),,' Makefile
31- '';
3233 installPhase = ''
34- mkdir $out/bin/ -p
35- mkdir $out/share/man1 -p
36- mkdir $out/share/tasknc -p
37- DESTDIR=$out PREFIX= MANPREFIX=share make install
00038 '';
3940- buildInputs = [ taskwarrior perl ncurses ];
4142- meta = {
43- homepage = https://github.com/mjheagle8/tasknc;
44 description = "A ncurses wrapper around taskwarrior";
45- maintainers = [ stdenv.lib.maintainers.matthiasbeyer ];
46- platforms = stdenv.lib.platforms.linux; # Cannot test others
47 };
48}