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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
900 B
Nix
Raw Normal View History

2022-02-22 04:20:00 +00:00
{ lib
, stdenv
, fetchFromGitHub
2022-02-22 04:20:00 +00:00
, rustPlatform
, Security
, installShellFiles
}:
2019-07-08 04:39:45 +00:00
rustPlatform.buildRustPackage rec {
pname = "git-gone";
2024-02-28 12:02:38 +00:00
version = "1.1.0";
2019-07-08 04:39:45 +00:00
src = fetchFromGitHub {
owner = "swsnr";
repo = "git-gone";
2019-07-08 04:39:45 +00:00
rev = "v${version}";
2024-02-28 12:02:38 +00:00
hash = "sha256-Mc9/P4VBmLOC05xqdx/yopbhvdpQS3uejc4YA7BIgug=";
2019-07-08 04:39:45 +00:00
};
2024-02-28 12:02:38 +00:00
cargoHash = "sha256-NyyficEDJReMLAw2VAK2fOXNIwHilnUqQRACGck+0Vo=";
2019-07-08 04:39:45 +00:00
2022-02-22 04:20:00 +00:00
nativeBuildInputs = [ installShellFiles ];
2019-07-08 04:39:45 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
2019-07-08 04:39:45 +00:00
2020-04-20 09:20:00 +00:00
postInstall = ''
installManPage git-gone.1
'';
meta = with lib; {
2022-02-22 04:20:00 +00:00
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";
2019-07-08 04:39:45 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ cafkafk ];
2023-11-27 01:17:53 +00:00
mainProgram = "git-gone";
2019-07-08 04:39:45 +00:00
};
}