blob: 5115f37891abbc04383b4b1a221116af06df7a9e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, libiconv, Security }:
rustPlatform.buildRustPackage rec {
pname = "git-absorb";
version = "0.6.6";
src = fetchFromGitHub {
owner = "tummychow";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "04v10bn24acify34vh5ayymsr1flcyb05f3az9k1s2m6nlxy5gb9";
};
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
cargoSha256 = "0dax6wkbyk5p8p0mm406vfgmqfmfxzyzqps6yk8fachi61x12ja6";
postInstall = ''
installManPage Documentation/git-absorb.1
for shell in bash zsh fish; do
$out/bin/git-absorb --gen-completions $shell > git-absorb.$shell
installShellCompletion git-absorb.$shell
done
'';
meta = with lib; {
homepage = "https://github.com/tummychow/git-absorb";
description = "git commit --fixup, but automatic";
license = [ licenses.bsd3 ];
maintainers = [ maintainers.marsam ];
};
}
|