2022-02-22 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2022-10-14 04:20:00 +00:00
|
|
|
, 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
|
|
|
|
2022-10-14 04:20:00 +00:00
|
|
|
src = fetchFromGitHub {
|
2023-04-04 04:20:00 +00:00
|
|
|
owner = "swsnr";
|
2022-10-14 04:20:00 +00:00
|
|
|
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
|
|
|
|
2022-10-14 04:20:00 +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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-02-22 04:20:00 +00:00
|
|
|
description = "Cleanup stale Git branches of merge requests";
|
2023-04-04 04:20:00 +00:00
|
|
|
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;
|
2024-04-28 16:55:21 +00:00
|
|
|
maintainers = with maintainers; [ cafkafk ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "git-gone";
|
2019-07-08 04:39:45 +00:00
|
|
|
};
|
|
|
|
}
|