d994dabace
We do not use a "plugin system" for Git addons anymore, and therefore this directory is no longer useful. Indeed that directory is way more confusing, given that it includes more than mere Git addons, going from Bitbucket server command-line tools to complete rewrites of Git in exotic programming languages. Also, without this directory, the mental load of decision-making reduces a lot. When anyone is interested in including a new git-related tool, just put it into pkgs/applications/version-management, without apologies.
34 lines
1 KiB
Nix
34 lines
1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "git-absorb";
|
|
version = "0.6.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tummychow";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-z02bMJ+KQaLHqIzsdB3BCVzTQ0NRG0ylAfTHYgOxZYk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
cargoSha256 = "sha256-lP0fU2Cirta4WWha7Pgje537u6TbD5oiHLfamfzJtpU=";
|
|
|
|
postInstall = ''
|
|
installManPage Documentation/git-absorb.1
|
|
installShellCompletion --cmd git-absorb \
|
|
--bash <($out/bin/git-absorb --gen-completions bash) \
|
|
--fish <($out/bin/git-absorb --gen-completions fish) \
|
|
--zsh <($out/bin/git-absorb --gen-completions zsh)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/tummychow/git-absorb";
|
|
description = "git commit --fixup, but automatic";
|
|
license = [ licenses.bsd3 ];
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|