Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64433 from marsam/init-git-gone
gitAndTools.git-gone: init at 0.1.2
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
pkgs/applications/version-management/git-and-tools/git-gone/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, curl, libiconv, Security }: | ||
|
||
rustPlatform.buildRustPackage rec { | ||
pname = "git-gone"; | ||
version = "0.1.2"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "lunaryorn"; | ||
repo = pname; | ||
rev = "v${version}"; | ||
sha256 = "0vgkx227wpg9l2zza6446wzshjhnrhba3qhabibn4gg8wwcqmmxf"; | ||
}; | ||
|
||
cargoSha256 = "11h2whlgjhg3j98a9w9k29njj89wx93w0dcyf981985flin709sx"; | ||
|
||
nativeBuildInputs = [ pkgconfig ]; | ||
|
||
buildInputs = [ openssl ] | ||
++ stdenv.lib.optionals stdenv.isDarwin [ curl libiconv Security ]; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Cleanup stale Git branches of pull requests"; | ||
homepage = "https://github.com/lunaryorn/git-gone"; | ||
license = licenses.asl20; | ||
maintainers = [ maintainers.marsam ]; | ||
platforms = platforms.unix; | ||
}; | ||
} |