Unverified Commit 204bd937 authored by Christina Sørensen's avatar Christina Sørensen Committed by GitHub
Browse files

git-gone: 1.1.1 -> 1.2.5 (#384103)

parents 726188fd fe037325
Loading
Loading
Loading
Loading
+22 −8
Original line number Diff line number Diff line
@@ -5,36 +5,50 @@
  rustPlatform,
  Security,
  installShellFiles,
  asciidoctor,
}:

rustPlatform.buildRustPackage rec {
  pname = "git-gone";
  version = "1.1.1";
  version = "1.2.5";

  src = fetchFromGitHub {
    owner = "swsnr";
    repo = "git-gone";
    rev = "v${version}";
    hash = "sha256-j88ZnJ0V8h/fthOWwV6B0ZbzUz7THykqrI2QpOkDT4I=";
    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]'
  '';

  useFetchCargoVendor = true;
  cargoHash = "sha256-fXdWwGkdMhZA9u/xbvRIV6m88q6SQDahU12ZjQZFu3Y=";
  cargoHash = "sha256-VjnnrVN+uST99paImI1uNj34CNozid7ZiPslJqvmKCs=";

  nativeBuildInputs = [ installShellFiles ];
  # remove if updating to rust 1.85
  env.RUSTC_BOOTSTRAP = 1;

  nativeBuildInputs = [
    installShellFiles
    asciidoctor
  ];

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

  postInstall = ''
    asciidoctor --backend=manpage git-gone.1.adoc -o git-gone.1
    installManPage git-gone.1
  '';

  meta = with lib; {
  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 = licenses.asl20;
    maintainers = with maintainers; [
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [
      cafkafk
      matthiasbeyer
    ];