Files
nixpkgs/pkgs/by-name/gi/git-gone/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

53 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
installShellFiles,
asciidoctor,
}:
rustPlatform.buildRustPackage rec {
pname = "git-gone";
version = "1.2.5";
src = fetchFromGitHub {
owner = "swsnr";
repo = "git-gone";
tag = "v${version}";
hash = "sha256-4BhFombZCmv/GNG2OcNlWNKTk2h65yKn1ku734gCBCQ=";
};
# remove if updating to rust 1.85
postPatch = ''
substituteInPlace Cargo.toml \
--replace-fail "[package]" ''$'cargo-features = ["edition2024"]\n[package]'
'';
cargoHash = "sha256-VjnnrVN+uST99paImI1uNj34CNozid7ZiPslJqvmKCs=";
# remove if updating to rust 1.85
env.RUSTC_BOOTSTRAP = 1;
nativeBuildInputs = [
installShellFiles
asciidoctor
];
postInstall = ''
asciidoctor --backend=manpage git-gone.1.adoc -o git-gone.1
installManPage git-gone.1
'';
meta = {
description = "Cleanup stale Git branches of merge requests";
homepage = "https://github.com/swsnr/git-gone";
changelog = "https://github.com/swsnr/git-gone/raw/v${version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
cafkafk
matthiasbeyer
];
mainProgram = "git-gone";
};
}