nixpkgs/pkgs/applications/misc/vit/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
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.
2024-03-19 03:14:51 +01:00

42 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;
};
}