diff --git a/pkgs/by-name/gi/gitfetch/package.nix b/pkgs/by-name/gi/gitfetch/package.nix new file mode 100644 index 000000000000..7f0f5636a118 --- /dev/null +++ b/pkgs/by-name/gi/gitfetch/package.nix @@ -0,0 +1,46 @@ +{ + lib, + python3Packages, + fetchFromGitHub, + gh, + nix-update-script, +}: + +python3Packages.buildPythonApplication rec { + pname = "gitfetch"; + version = "1.2.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "Matars"; + repo = "gitfetch"; + tag = "v${version}"; + hash = "sha256-2cOfVv/snhluazyjwDuHEbbMq3cK+bsKYnnRmby0JDo="; + }; + + build-system = with python3Packages; [ setuptools ]; + + dependencies = with python3Packages; [ + requests + readchar + ]; + + makeWrapperArgs = [ + "--prefix PATH : ${ + lib.makeBinPath [ + gh + ] + }" + ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Neofetch-style CLI tool for git provider statistics"; + homepage = "https://github.com/Matars/gitfetch"; + mainProgram = "gitfetch"; + license = lib.licenses.gpl2Only; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ lonerOrz ]; + }; +}