Skip to content

Commit fe03732

Browse files
author
emaryn
committed
git-gone: 1.1.1 -> 1.2.5
1 parent 6403ffc commit fe03732

File tree

1 file changed

+19
-5
lines changed
  • pkgs/applications/version-management/git-gone

1 file changed

+19
-5
lines changed

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

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,41 @@
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

0 commit comments

Comments
 (0)