nixpkgs/pkgs/applications/version-management/git-and-tools/git-absorb/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
1.0 KiB
Nix
Raw Normal View History

2022-06-04 04:20:00 +00:00
{ lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, Security }:
2018-11-16 00:39:26 +00:00
rustPlatform.buildRustPackage rec {
2019-07-15 00:00:00 +00:00
pname = "git-absorb";
2022-06-04 04:20:00 +00:00
version = "0.6.7";
2018-11-16 00:39:26 +00:00
src = fetchFromGitHub {
2022-06-04 04:20:00 +00:00
owner = "tummychow";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "sha256-qhUw1wjXn1tyiH175+BadcoKoZ0wHxpMTKDIKOcJjQ0=";
2018-11-16 00:39:26 +00:00
};
2020-05-15 05:00:00 +00:00
nativeBuildInputs = [ installShellFiles ];
2022-06-04 04:20:00 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
2018-11-16 00:39:26 +00:00
2022-06-04 04:20:00 +00:00
cargoSha256 = "sha256-Wh2kA12CggbgdofWJwPAy+587qfMUPSy9nQmO11+keY=";
2020-05-15 05:00:00 +00:00
postInstall = ''
installManPage Documentation/git-absorb.1
2022-06-04 04:20:00 +00:00
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)
2020-05-15 05:00:00 +00:00
'';
2018-11-16 00:39:26 +00:00
meta = with lib; {
2019-07-15 00:00:00 +00:00
homepage = "https://github.com/tummychow/git-absorb";
2018-11-16 00:39:26 +00:00
description = "git commit --fixup, but automatic";
license = [ licenses.bsd3 ];
maintainers = [ maintainers.marsam ];
};
}