From 6c8c69dd58b7e77c3d61b61257bffe79087f887e Mon Sep 17 00:00:00 2001 From: loner <2788892716@qq.com> Date: Fri, 24 Oct 2025 01:34:50 +0800 Subject: [PATCH] gitfetch: init at 1.2.1 --- pkgs/by-name/gi/gitfetch/package.nix | 46 ++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pkgs/by-name/gi/gitfetch/package.nix 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 ]; + }; +}