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
893 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";
2023-08-20 17:50:22 +00:00
version = "1.0.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}";
2023-08-20 17:50:22 +00:00
hash = "sha256-cEMFbG7L48s1SigLD/HfQ2NplGZPpO+KIgs3oV3rgQQ=";
2019-07-08 04:39:45 +00:00
};
2023-08-20 17:50:22 +00:00
cargoHash = "sha256-CCPVjOWM59ELd4AyT968v6kvGdVwkMxxLZGDiJlLkzA=";
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 = [ maintainers.marsam ];
2023-11-27 01:17:53 +00:00
mainProgram = "git-gone";
2019-07-08 04:39:45 +00:00
};
}