nixpkgs/pkgs/applications/version-management/git-and-tools/git-gone/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
923 B
Nix
Raw Normal View History

2022-02-22 04:20:00 +00:00
{ lib
, stdenv
, fetchFromGitea
, rustPlatform
, libiconv
, Security
, installShellFiles
}:
2019-07-08 04:39:45 +00:00
rustPlatform.buildRustPackage rec {
pname = "git-gone";
version = "0.4.1";
2019-07-08 04:39:45 +00:00
2022-02-22 04:20:00 +00:00
src = fetchFromGitea {
domain = "codeberg.org";
owner = "flausch";
2019-07-08 04:39:45 +00:00
repo = pname;
rev = "v${version}";
sha256 = "sha256-kqKFs3xvTVHnsLpLC9gjj1dcPChhegmupNrbWy+7C6o=";
2019-07-08 04:39:45 +00:00
};
cargoSha256 = "sha256-8R13eHS69fQ3r3LYlnB3nPTPX7VesUPlAUCmQEpUUdw=";
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
2022-02-22 04:20:00 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ libiconv 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://codeberg.org/flausch/git-gone";
changelog = "https://codeberg.org/flausch/git-gone/raw/tag/v${version}/CHANGELOG.md";
2019-07-08 04:39:45 +00:00
license = licenses.asl20;
maintainers = [ maintainers.marsam ];
};
}