2020-05-15 06:00:00 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, installShellFiles, libiconv, Security }:
|
2018-11-16 00:39:26 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-07-15 01:00:00 +01:00
|
|
|
pname = "git-absorb";
|
2020-11-03 03:00:00 +00:00
|
|
|
version = "0.6.6";
|
2018-11-16 00:39:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tummychow";
|
2019-07-15 01:00:00 +01:00
|
|
|
repo = pname;
|
2018-11-16 00:39:26 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2020-11-03 03:00:00 +00:00
|
|
|
sha256 = "04v10bn24acify34vh5ayymsr1flcyb05f3az9k1s2m6nlxy5gb9";
|
2018-11-16 00:39:26 +00:00
|
|
|
};
|
|
|
|
|
2020-05-15 06:00:00 +01:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2018-11-16 00:39:26 +00:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
|
|
|
|
|
2020-11-03 03:00:00 +00:00
|
|
|
cargoSha256 = "0h0vlz4qd8i9bf1mgjr618zbdwfp6bmy7ql9a1xzjmfdpkl3cgk9";
|
2020-05-15 06:00:00 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage Documentation/git-absorb.1
|
2020-11-03 03:00:00 +00:00
|
|
|
for shell in bash zsh fish; do
|
|
|
|
$out/bin/git-absorb --gen-completions $shell > git-absorb.$shell
|
|
|
|
installShellCompletion git-absorb.$shell
|
|
|
|
done
|
2020-05-15 06:00:00 +01:00
|
|
|
'';
|
2018-11-16 00:39:26 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-07-15 01:00:00 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|