mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
git-gone: 1.1.1 -> 1.2.5 (#384103)
This commit is contained in:
commit
204bd937e2
1 changed files with 23 additions and 9 deletions
|
@ -5,36 +5,50 @@
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
Security,
|
Security,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
|
asciidoctor,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "git-gone";
|
pname = "git-gone";
|
||||||
version = "1.1.1";
|
version = "1.2.5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "swsnr";
|
owner = "swsnr";
|
||||||
repo = "git-gone";
|
repo = "git-gone";
|
||||||
rev = "v${version}";
|
tag = "v${version}";
|
||||||
hash = "sha256-j88ZnJ0V8h/fthOWwV6B0ZbzUz7THykqrI2QpOkDT4I=";
|
hash = "sha256-4BhFombZCmv/GNG2OcNlWNKTk2h65yKn1ku734gCBCQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
useFetchCargoVendor = true;
|
# remove if updating to rust 1.85
|
||||||
cargoHash = "sha256-fXdWwGkdMhZA9u/xbvRIV6m88q6SQDahU12ZjQZFu3Y=";
|
postPatch = ''
|
||||||
|
substituteInPlace Cargo.toml \
|
||||||
|
--replace-fail "[package]" ''$'cargo-features = ["edition2024"]\n[package]'
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
useFetchCargoVendor = true;
|
||||||
|
cargoHash = "sha256-VjnnrVN+uST99paImI1uNj34CNozid7ZiPslJqvmKCs=";
|
||||||
|
|
||||||
|
# remove if updating to rust 1.85
|
||||||
|
env.RUSTC_BOOTSTRAP = 1;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
installShellFiles
|
||||||
|
asciidoctor
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
asciidoctor --backend=manpage git-gone.1.adoc -o git-gone.1
|
||||||
installManPage git-gone.1
|
installManPage git-gone.1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Cleanup stale Git branches of merge requests";
|
description = "Cleanup stale Git branches of merge requests";
|
||||||
homepage = "https://github.com/swsnr/git-gone";
|
homepage = "https://github.com/swsnr/git-gone";
|
||||||
changelog = "https://github.com/swsnr/git-gone/raw/v${version}/CHANGELOG.md";
|
changelog = "https://github.com/swsnr/git-gone/raw/v${version}/CHANGELOG.md";
|
||||||
license = licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
maintainers = with maintainers; [
|
maintainers = with lib.maintainers; [
|
||||||
cafkafk
|
cafkafk
|
||||||
matthiasbeyer
|
matthiasbeyer
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue