Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
asciidoc,
|
|
fetchFromGitHub,
|
|
gitMinimal,
|
|
rustPlatform,
|
|
installShellFiles,
|
|
which,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "git-absorb";
|
|
version = "0.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tummychow";
|
|
repo = "git-absorb";
|
|
tag = version;
|
|
hash = "sha256-O9bJMYhIyCtztswvL0JQ4ZtsAAI9TlHzWDeGdTHEmP4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
asciidoc
|
|
installShellFiles
|
|
which # used by Documentation/Makefile
|
|
];
|
|
|
|
cargoHash = "sha256-QBZItmKH9b2KwHR88MotyIT2krZl5QQFLvUmPmbxl4U=";
|
|
|
|
nativeCheckInputs = [
|
|
gitMinimal
|
|
];
|
|
|
|
postInstall = ''
|
|
cd Documentation/
|
|
make
|
|
installManPage git-absorb.1
|
|
cd -
|
|
''
|
|
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
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)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/tummychow/git-absorb";
|
|
description = "git commit --fixup, but automatic";
|
|
license = [ licenses.bsd3 ];
|
|
maintainers = with maintainers; [
|
|
matthiasbeyer
|
|
];
|
|
mainProgram = "git-absorb";
|
|
};
|
|
}
|