nixpkgs/pkgs/applications/version-management/git-and-tools/git-absorb/default.nix
2020-06-09 19:34:00 +00:00

30 lines
840 B
Nix

{ stdenv, fetchFromGitHub, rustPlatform, installShellFiles, libiconv, Security }:
rustPlatform.buildRustPackage rec {
pname = "git-absorb";
version = "0.6.3";
src = fetchFromGitHub {
owner = "tummychow";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "0kvb9nzjlxhnrd2ir3zjd99v7zcq4bch1i9nqsn3505j5m0wv0hh";
};
nativeBuildInputs = [ installShellFiles ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
cargoSha256 = "0bppb1ng77ynhlxnhgz9qx4x5j0lyzcxw3zshfpgjc03fxcwl6cz";
postInstall = ''
installManPage Documentation/git-absorb.1
'';
meta = with stdenv.lib; {
homepage = "https://github.com/tummychow/git-absorb";
description = "git commit --fixup, but automatic";
license = [ licenses.bsd3 ];
maintainers = [ maintainers.marsam ];
};
}