highs: 1.8.0 -> 1.8.1 (#360451)
[NixPkgs.git] / pkgs / applications / version-management / git-gone / default.nix
blob1cc039a09fc635726cc93ac6b801df46a046d745
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , rustPlatform
5 , Security
6 , installShellFiles
7 }:
9 rustPlatform.buildRustPackage rec {
10   pname = "git-gone";
11   version = "1.1.1";
13   src = fetchFromGitHub {
14     owner = "swsnr";
15     repo = "git-gone";
16     rev = "v${version}";
17     hash = "sha256-j88ZnJ0V8h/fthOWwV6B0ZbzUz7THykqrI2QpOkDT4I=";
18   };
20   cargoHash = "sha256-H41wpG5LhjJ7BtFrol0JbjTpssOPUgumgapOiZJi2lc=";
22   nativeBuildInputs = [ installShellFiles ];
24   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
26   postInstall = ''
27     installManPage git-gone.1
28   '';
30   meta = with lib; {
31     description = "Cleanup stale Git branches of merge requests";
32     homepage = "https://github.com/swsnr/git-gone";
33     changelog = "https://github.com/swsnr/git-gone/raw/v${version}/CHANGELOG.md";
34     license = licenses.asl20;
35     maintainers = with maintainers; [ cafkafk ];
36     mainProgram = "git-gone";
37   };