c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
37 lines
879 B
Nix
37 lines
879 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, Security
|
|
, installShellFiles
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "git-gone";
|
|
version = "0.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lunaryorn";
|
|
repo = "git-gone";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-aKBNi797aMPawxD+BLpk0sazXz2g0XTzmDpR/mk07no=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-vO1ePqDIy5HEBauO3OkMCovrgtIVB9biJExw/q89ivE=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
postInstall = ''
|
|
installManPage git-gone.1
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Cleanup stale Git branches of merge requests";
|
|
homepage = "https://github.com/lunaryorn/git-gone";
|
|
changelog = "https://github.com/lunaryorn/git-gone/raw/v${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|