at 23.11-beta 37 lines 863 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, rustPlatform 5, Security 6, installShellFiles 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "git-gone"; 11 version = "1.0.0"; 12 13 src = fetchFromGitHub { 14 owner = "swsnr"; 15 repo = "git-gone"; 16 rev = "v${version}"; 17 hash = "sha256-cEMFbG7L48s1SigLD/HfQ2NplGZPpO+KIgs3oV3rgQQ="; 18 }; 19 20 cargoHash = "sha256-CCPVjOWM59ELd4AyT968v6kvGdVwkMxxLZGDiJlLkzA="; 21 22 nativeBuildInputs = [ installShellFiles ]; 23 24 buildInputs = lib.optionals stdenv.isDarwin [ Security ]; 25 26 postInstall = '' 27 installManPage git-gone.1 28 ''; 29 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 = [ maintainers.marsam ]; 36 }; 37}