ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
41 lines
826 B
Nix
41 lines
826 B
Nix
{ lib
|
|
, python3Packages
|
|
, fetchPypi
|
|
, taskwarrior
|
|
, glibcLocales
|
|
}:
|
|
|
|
with python3Packages;
|
|
|
|
buildPythonApplication rec {
|
|
pname = "vit";
|
|
version = "2.3.2";
|
|
disabled = lib.versionOlder python.version "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-qDfY6GWnDQ44Sh540xQzDwANEI+mLjpy2a7G3sfKIzw=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
tasklib
|
|
urwid
|
|
];
|
|
|
|
nativeCheckInputs = [ glibcLocales ];
|
|
|
|
makeWrapperArgs = [ "--suffix" "PATH" ":" "${taskwarrior}/bin" ];
|
|
|
|
preCheck = ''
|
|
export TERM=''${TERM-linux}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/scottkosty/vit";
|
|
description = "Visual Interactive Taskwarrior";
|
|
mainProgram = "vit";
|
|
maintainers = with maintainers; [ dtzWill arcnmx ];
|
|
platforms = platforms.all;
|
|
license = licenses.mit;
|
|
};
|
|
}
|