2019-03-11 04:17:42 +01:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, makeWrapper, which
|
|
|
|
, taskwarrior, ncurses, perlPackages }:
|
2015-07-05 16:02:35 +02:00
|
|
|
|
2019-03-11 04:17:42 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vit";
|
|
|
|
version = "1.3";
|
2015-07-05 16:02:35 +02:00
|
|
|
|
2019-03-11 04:17:42 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scottkosty";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0a34rh5w8393wf7jwwr0f74rp1zv2vz606z5j8sr7w19k352ijip";
|
2015-07-05 16:02:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace Makefile.in \
|
|
|
|
--replace sudo ""
|
|
|
|
substituteInPlace configure \
|
2019-03-11 04:17:42 +01:00
|
|
|
--replace /usr/bin/perl ${perlPackages.perl}/bin/perl
|
|
|
|
substituteInPlace cmdline.pl \
|
|
|
|
--replace "view " "vim -R "
|
2015-07-05 16:02:35 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/vit --prefix PERL5LIB : $PERL5LIB
|
|
|
|
'';
|
|
|
|
|
2019-03-11 04:17:42 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper which ];
|
|
|
|
buildInputs = [ taskwarrior ncurses ]
|
|
|
|
++ (with perlPackages; [ perl Curses TryTiny TextCharWidth ]);
|
2015-07-05 16:02:35 +02:00
|
|
|
|
2019-03-11 04:17:42 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-07-05 16:02:35 +02:00
|
|
|
description = "Visual Interactive Taskwarrior";
|
2019-03-11 04:17:42 +01:00
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl3;
|
2015-07-05 16:02:35 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|