2018-02-02 10:23:29 +01:00
|
|
|
{ stdenv, fetchFromGitHub, makeWrapper, perl, ncurses, taskwarrior }:
|
2015-03-07 15:48:35 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-02 10:23:29 +01:00
|
|
|
version = "2017-05-15";
|
2015-03-07 15:48:35 +01:00
|
|
|
name = "tasknc-${version}";
|
|
|
|
|
2018-02-02 10:23:29 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lharding";
|
|
|
|
repo = "tasknc";
|
|
|
|
rev = "c41d0240e9b848e432f01de735f28de93b934ae7";
|
|
|
|
sha256 = "0f7l7fy06p33vw6f6sjnjxfhw951664pmwhjl573jvmh6gi2h1yr";
|
2015-03-07 15:48:35 +01:00
|
|
|
};
|
|
|
|
|
2018-02-02 10:23:29 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
perl # For generating the man pages with pod2man
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-08 01:21:29 +01:00
|
|
|
|
2018-02-02 10:23:29 +01:00
|
|
|
buildFlags = [ "VERSION=${version}" ];
|
2015-03-07 15:48:35 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2018-02-02 10:23:29 +01:00
|
|
|
mkdir -p $out/bin/
|
|
|
|
mkdir -p $out/share/man/man1
|
|
|
|
mkdir -p $out/share/tasknc
|
|
|
|
|
|
|
|
DESTDIR=$out PREFIX= MANPREFIX=/share/man make install
|
|
|
|
|
|
|
|
wrapProgram $out/bin/tasknc --prefix PATH : ${taskwarrior}/bin
|
2015-03-07 15:48:35 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
|
2018-02-02 10:23:29 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/lharding/tasknc;
|
2016-06-20 12:53:46 +02:00
|
|
|
description = "A ncurses wrapper around taskwarrior";
|
2018-04-06 10:57:19 +02:00
|
|
|
maintainers = with maintainers; [ infinisil ];
|
2018-02-02 10:23:29 +01:00
|
|
|
platforms = platforms.linux; # Cannot test others
|
2015-03-07 15:48:35 +01:00
|
|
|
};
|
|
|
|
}
|