2020-05-15 05:00:00 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, installShellFiles, libiconv, Security }:
|
2018-11-16 00:39:26 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-07-15 00:00:00 +00:00
|
|
|
pname = "git-absorb";
|
2020-06-09 19:34:00 +00:00
|
|
|
version = "0.6.3";
|
2018-11-16 00:39:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tummychow";
|
2019-07-15 00:00:00 +00:00
|
|
|
repo = pname;
|
2018-11-16 00:39:26 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2020-06-09 19:34:00 +00:00
|
|
|
sha256 = "0kvb9nzjlxhnrd2ir3zjd99v7zcq4bch1i9nqsn3505j5m0wv0hh";
|
2018-11-16 00:39:26 +00:00
|
|
|
};
|
|
|
|
|
2020-05-15 05:00:00 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2018-11-16 00:39:26 +00:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
|
|
|
|
|
2020-06-09 19:34:00 +00:00
|
|
|
cargoSha256 = "0bppb1ng77ynhlxnhgz9qx4x5j0lyzcxw3zshfpgjc03fxcwl6cz";
|
2020-05-15 05:00:00 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage Documentation/git-absorb.1
|
|
|
|
'';
|
2018-11-16 00:39:26 +00:00
|
|
|
|
|
|
|
meta = with stdenv.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 ];
|
|
|
|
};
|
|
|
|
}
|