Merge pull request #108599 from yusdacra/add-tug

This commit is contained in:
Sandro 2021-01-07 11:15:55 +01:00 committed by GitHub
commit 7c3f3c70c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,42 @@
{ fetchFromGitHub, buildGoModule, lib, installShellFiles }:
buildGoModule rec {
pname = "turbogit";
version = "1.2.0";
src = fetchFromGitHub {
owner = "b4nst";
repo = pname;
rev = "v${version}";
sha256 = "sha256-alVgXnsoC2nmUe6i/l0ttUjoXpKLHr0n/7p6WbIIGBU=";
};
vendorSha256 = "sha256-6fxbxpROYiNw5SYdQAIdy5NfqzOcFfAlJ+vTQyFtink=";
subPackages = [ "." ];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
# Move turbogit binary to tug
ln -s $out/bin/turbogit $out/bin/tug
# Generate completion files
mkdir -p share/completions
$out/bin/tug completion bash > share/completions/tug.bash
$out/bin/tug completion fish > share/completions/tug.fish
$out/bin/tug completion zsh > share/completions/tug.zsh
installShellCompletion share/completions/tug.{bash,fish,zsh}
'';
meta = with lib; {
description = "Keep your git workflow clean without headache.";
longDescription = ''
turbogit (tug) is a cli tool built to help you deal with your day-to-day git work.
turbogit enforces convention (e.g. The Conventional Commits) but tries to keep things simple and invisible for you.
turbogit is your friend.
'';
homepage = "https://b4nst.github.io/turbogit";
license = licenses.mit;
maintainers = [ maintainers.yusdacra ];
};
}

View File

@ -12371,6 +12371,8 @@ in
ttyd = callPackage ../servers/ttyd { };
turbogit = callPackage ../development/tools/turbogit { };
tweak = callPackage ../applications/editors/tweak { };
tychus = callPackage ../development/tools/tychus {