diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 3a3958179cb8..f8d6c80e1752 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -13994,6 +13994,12 @@ name = "John Soo"; githubId = 10039785; }; + jsqu4re = { + email = "johannes.jeising@gmail.com"; + github = "jsqu4re"; + githubId = 35706792; + name = "Johannes Jeising"; + }; jsusk = { email = "joshua@suskalo.org"; github = "IGJoshua"; diff --git a/pkgs/by-name/wt/wtp/package.nix b/pkgs/by-name/wt/wtp/package.nix new file mode 100644 index 000000000000..fff9d6fe39b8 --- /dev/null +++ b/pkgs/by-name/wt/wtp/package.nix @@ -0,0 +1,42 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + gitMinimal, +}: + +buildGoModule (finalAttrs: { + pname = "wtp"; + version = "2.10.3"; + + src = fetchFromGitHub { + owner = "satococoa"; + repo = "wtp"; + tag = "v${finalAttrs.version}"; + hash = "sha256-KgayKjH4iHi7LgWwk2Laba33bMVZdbiMQgSmqBSTfZ0="; + }; + + vendorHash = "sha256-zsSNo1MQgpvH3ZSd3kmvdIpOCVJgSu1/pYLltx/9dZg="; + + subPackages = [ "cmd/wtp" ]; + __structuredAttrs = true; + + nativeCheckInputs = [ gitMinimal ]; + + preCheck = '' + git init . + git config user.name "nixpkgs" + git config user.email "nixpkgs@example.invalid" + touch .nixpkgs-wtp-test + git add .nixpkgs-wtp-test + git commit -m "Init test repo" >/dev/null + ''; + + meta = { + description = "Git worktree CLI with automated setup, branch tracking, and navigation"; + homepage = "https://github.com/satococoa/wtp"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ jsqu4re ]; + mainProgram = "wtp"; + }; +})