Merge pull request #57340 from dtzWill/update/vit-1.3
vit: 1.2 -> 1.3, cleanup + maintain
This commit is contained in:
commit
70a1f55fe1
@ -1,36 +1,40 @@
|
|||||||
{ pkgs, fetchgit, stdenv, makeWrapper, taskwarrior, ncurses,
|
{ stdenv, fetchFromGitHub
|
||||||
perl, perlPackages }:
|
, makeWrapper, which
|
||||||
|
, taskwarrior, ncurses, perlPackages }:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
version = "1.2";
|
pname = "vit";
|
||||||
in
|
version = "1.3";
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "vit-${version}";
|
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchFromGitHub {
|
||||||
url = "https://git.tasktools.org/scm/ex/vit.git";
|
owner = "scottkosty";
|
||||||
rev = "7d0042ca30e9d09cfbf9743b3bc72096e4a8fe1e";
|
repo = pname;
|
||||||
sha256 = "92cad7169b3870145dff02256e547ae270996a314b841d3daed392ac6722827f";
|
rev = "v${version}";
|
||||||
|
sha256 = "0a34rh5w8393wf7jwwr0f74rp1zv2vz606z5j8sr7w19k352ijip";
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
substituteInPlace Makefile.in \
|
substituteInPlace Makefile.in \
|
||||||
--replace sudo ""
|
--replace sudo ""
|
||||||
substituteInPlace configure \
|
substituteInPlace configure \
|
||||||
--replace /usr/bin/perl ${perl}/bin/perl
|
--replace /usr/bin/perl ${perlPackages.perl}/bin/perl
|
||||||
|
substituteInPlace cmdline.pl \
|
||||||
|
--replace "view " "vim -R "
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/vit --prefix PERL5LIB : $PERL5LIB
|
wrapProgram $out/bin/vit --prefix PERL5LIB : $PERL5LIB
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ taskwarrior ncurses perlPackages.Curses perl makeWrapper ];
|
nativeBuildInputs = [ makeWrapper which ];
|
||||||
|
buildInputs = [ taskwarrior ncurses ]
|
||||||
|
++ (with perlPackages; [ perl Curses TryTiny TextCharWidth ]);
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "Visual Interactive Taskwarrior";
|
description = "Visual Interactive Taskwarrior";
|
||||||
maintainers = with pkgs.lib.maintainers; [ ];
|
maintainers = with maintainers; [ dtzWill ];
|
||||||
platforms = pkgs.lib.platforms.all;
|
platforms = platforms.all;
|
||||||
license = pkgs.lib.licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user