vit: 1.3 -> 2.0.0
This commit is contained in:
parent
a104aad1a6
commit
eb59152136
|
@ -1,40 +1,37 @@
|
||||||
{ stdenv, fetchFromGitHub
|
{ lib
|
||||||
, makeWrapper, which
|
, python3Packages
|
||||||
, taskwarrior, ncurses, perlPackages }:
|
, taskwarrior }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
with python3Packages;
|
||||||
|
|
||||||
|
buildPythonApplication rec {
|
||||||
pname = "vit";
|
pname = "vit";
|
||||||
version = "1.3";
|
version = "2.0.0";
|
||||||
|
disabled = lib.versionOlder python.version "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchPypi {
|
||||||
owner = "scottkosty";
|
inherit pname version;
|
||||||
repo = pname;
|
sha256 = "5282d8076d9814d9248071aec8784cffbd968601542533ccb28ca61d1d08205e";
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "0a34rh5w8393wf7jwwr0f74rp1zv2vz606z5j8sr7w19k352ijip";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = ''
|
propagatedBuildInputs = [
|
||||||
substituteInPlace Makefile.in \
|
pytz
|
||||||
--replace sudo ""
|
tasklib
|
||||||
substituteInPlace configure \
|
tzlocal
|
||||||
--replace /usr/bin/perl ${perlPackages.perl}/bin/perl
|
urwid
|
||||||
substituteInPlace cmdline.pl \
|
];
|
||||||
--replace "view " "vim -R "
|
|
||||||
|
makeWrapperArgs = [ "--suffix" "PATH" ":" "${taskwarrior}/bin" ];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export TERM=''${TERM-linux}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
meta = with lib; {
|
||||||
wrapProgram $out/bin/vit --prefix PERL5LIB : $PERL5LIB
|
homepage = https://github.com/scottkosty/vit;
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper which ];
|
|
||||||
buildInputs = [ taskwarrior ncurses ]
|
|
||||||
++ (with perlPackages; [ perl Curses TryTiny TextCharWidth ]);
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "Visual Interactive Taskwarrior";
|
description = "Visual Interactive Taskwarrior";
|
||||||
maintainers = with maintainers; [ dtzWill ];
|
maintainers = with maintainers; [ dtzWill arcnmx ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
license = licenses.gpl3;
|
license = licenses.mit;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue