Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
installShellFiles,
|
|
git,
|
|
jq,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "git-worktree-switcher";
|
|
version = "0.2.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mateusauler";
|
|
repo = "git-worktree-switcher";
|
|
tag = "${finalAttrs.version}-fork";
|
|
hash = "sha256-vPnAXiizCU5nXce+aE2x2G5ei+7A+eBTUpxcGleSSa8=";
|
|
};
|
|
|
|
buildInputs = [
|
|
jq
|
|
git
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
installShellFiles
|
|
];
|
|
|
|
patches = [
|
|
./disable-update.patch # Disable update and auto update functionality
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
|
|
cp wt $out/bin
|
|
wrapProgram $out/bin/wt --prefix PATH : ${
|
|
lib.makeBinPath [
|
|
git
|
|
jq
|
|
]
|
|
}
|
|
|
|
installShellCompletion --zsh completions/_wt_completion
|
|
installShellCompletion --bash completions/wt_completion
|
|
installShellCompletion --fish completions/wt.fish
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/mateusauler/git-worktree-switcher";
|
|
description = "Switch between git worktrees with speed";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.all;
|
|
mainProgram = "wt";
|
|
maintainers = with lib.maintainers; [
|
|
jiriks74
|
|
mateusauler
|
|
];
|
|
};
|
|
})
|