nixpkgs/pkgs/applications/version-management/git-gone/default.nix
Christina Sørensen 9255c4d2d0
treewide: adopt orphaned packages
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-04-28 20:43:06 +02:00

39 lines
900 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, Security
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
pname = "git-gone";
version = "1.1.0";
src = fetchFromGitHub {
owner = "swsnr";
repo = "git-gone";
rev = "v${version}";
hash = "sha256-Mc9/P4VBmLOC05xqdx/yopbhvdpQS3uejc4YA7BIgug=";
};
cargoHash = "sha256-NyyficEDJReMLAw2VAK2fOXNIwHilnUqQRACGck+0Vo=";
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";
};
}