mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
38 lines
900 B
Nix
38 lines
900 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, Security
|
|
, installShellFiles
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "git-gone";
|
|
version = "1.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "swsnr";
|
|
repo = "git-gone";
|
|
rev = "v${version}";
|
|
hash = "sha256-j88ZnJ0V8h/fthOWwV6B0ZbzUz7THykqrI2QpOkDT4I=";
|
|
};
|
|
|
|
cargoHash = "sha256-H41wpG5LhjJ7BtFrol0JbjTpssOPUgumgapOiZJi2lc=";
|
|
|
|
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/swsnr/git-gone";
|
|
changelog = "https://github.com/swsnr/git-gone/raw/v${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ cafkafk ];
|
|
mainProgram = "git-gone";
|
|
};
|
|
}
|