Skip to content

Commit 204bd93

Browse files
authored
git-gone: 1.1.1 -> 1.2.5 (#384103)
2 parents 726188f + fe03732 commit 204bd93

File tree

1 file changed

+22
-8
lines changed
  • pkgs/applications/version-management/git-gone

1 file changed

+22
-8
lines changed

pkgs/applications/version-management/git-gone/default.nix

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,50 @@
55
rustPlatform,
66
Security,
77
installShellFiles,
8+
asciidoctor,
89
}:
910

1011
rustPlatform.buildRustPackage rec {
1112
pname = "git-gone";
12-
version = "1.1.1";
13+
version = "1.2.5";
1314

1415
src = fetchFromGitHub {
1516
owner = "swsnr";
1617
repo = "git-gone";
17-
rev = "v${version}";
18-
hash = "sha256-j88ZnJ0V8h/fthOWwV6B0ZbzUz7THykqrI2QpOkDT4I=";
18+
tag = "v${version}";
19+
hash = "sha256-4BhFombZCmv/GNG2OcNlWNKTk2h65yKn1ku734gCBCQ=";
1920
};
2021

22+
# remove if updating to rust 1.85
23+
postPatch = ''
24+
substituteInPlace Cargo.toml \
25+
--replace-fail "[package]" ''$'cargo-features = ["edition2024"]\n[package]'
26+
'';
27+
2128
useFetchCargoVendor = true;
22-
cargoHash = "sha256-fXdWwGkdMhZA9u/xbvRIV6m88q6SQDahU12ZjQZFu3Y=";
29+
cargoHash = "sha256-VjnnrVN+uST99paImI1uNj34CNozid7ZiPslJqvmKCs=";
30+
31+
# remove if updating to rust 1.85
32+
env.RUSTC_BOOTSTRAP = 1;
2333

24-
nativeBuildInputs = [ installShellFiles ];
34+
nativeBuildInputs = [
35+
installShellFiles
36+
asciidoctor
37+
];
2538

2639
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
2740

2841
postInstall = ''
42+
asciidoctor --backend=manpage git-gone.1.adoc -o git-gone.1
2943
installManPage git-gone.1
3044
'';
3145

32-
meta = with lib; {
46+
meta = {
3347
description = "Cleanup stale Git branches of merge requests";
3448
homepage = "https://github.com/swsnr/git-gone";
3549
changelog = "https://github.com/swsnr/git-gone/raw/v${version}/CHANGELOG.md";
36-
license = licenses.asl20;
37-
maintainers = with maintainers; [
50+
license = lib.licenses.asl20;
51+
maintainers = with lib.maintainers; [
3852
cafkafk
3953
matthiasbeyer
4054
];

0 commit comments

Comments
 (0)