From 4a3e55f2969f7e422de57a1a9991d22a0b30330c Mon Sep 17 00:00:00 2001 From: Benjamin Tan Date: Fri, 9 Jan 2026 07:18:00 +0800 Subject: [PATCH 1/2] maintainers: add bnjmnt4n --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 73ee9dcd54e2..f12f5ddf9909 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3633,6 +3633,12 @@ github = "bmwalters"; githubId = 4380777; }; + bnjmnt4n = { + name = "Benjamin Tan"; + github = "bnjmnt4n"; + githubId = 813865; + email = "benjamin@dev.ofcr.se"; + }; bnlrnz = { github = "bnlrnz"; githubId = 11310385; From 49c94e4ae86cb793d98dd3ae6e3462338674d31a Mon Sep 17 00:00:00 2001 From: Benjamin Tan Date: Fri, 9 Jan 2026 07:18:00 +0800 Subject: [PATCH 2/2] git-pkgs: init at 0.11.0 git-pkgs [0] is a git subcommand for analyzing package/dependency usage in git repositories over time. [0]: https://github.com/git-pkgs/git-pkgs --- pkgs/by-name/gi/git-pkgs/package.nix | 52 ++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 pkgs/by-name/gi/git-pkgs/package.nix diff --git a/pkgs/by-name/gi/git-pkgs/package.nix b/pkgs/by-name/gi/git-pkgs/package.nix new file mode 100644 index 000000000000..5b67fe053d4c --- /dev/null +++ b/pkgs/by-name/gi/git-pkgs/package.nix @@ -0,0 +1,52 @@ +{ + lib, + stdenv, + fetchFromGitHub, + buildGoModule, + installShellFiles, +}: +buildGoModule rec { + pname = "git-pkgs"; + version = "0.11.0"; + + src = fetchFromGitHub { + owner = "git-pkgs"; + repo = "git-pkgs"; + tag = "v${version}"; + hash = "sha256-XjW3qwybTmzW2CNgu1Edgs5ZZ9xl3+uS4sT8VWD3jyQ="; + }; + + vendorHash = "sha256-/LJwq17f7SAjSV2ZcLrdaKZYf9RVJ9wtYqEsW0ubT1Q="; + + subPackages = [ "." ]; + + ldflags = [ + "-X github.com/git-pkgs/git-pkgs/cmd.version=${version}" + ]; + + # Tries to access the internet. + doCheck = false; + + nativeBuildInputs = [ installShellFiles ]; + + postBuild = '' + go run scripts/generate-man.go + installManPage man/*.1 + ''; + + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' + installShellCompletion --cmd git-pkgs \ + --bash <($out/bin/git-pkgs completion bash) \ + --fish <($out/bin/git-pkgs completion fish) \ + --zsh <($out/bin/git-pkgs completion zsh) + ''; + + meta = { + homepage = "https://github.com/git-pkgs/git-pkgs"; + description = "Git subcommand for analyzing package/dependency usage in git repositories over time"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ bnjmnt4n ]; + platforms = lib.platforms.unix; + mainProgram = "git-pkgs"; + }; +}