mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-18 05:39:58 +00:00
wtp: init at 2.10.3 (#539946)
This commit is contained in:
@@ -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";
|
||||
|
||||
42
pkgs/by-name/wt/wtp/package.nix
Normal file
42
pkgs/by-name/wt/wtp/package.nix
Normal file
@@ -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";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user