@@ -0,0 +1,28 @@
1+{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, curl, libiconv, Security }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "git-gone";
5+ version = "0.1.2";
6+
7+ src = fetchFromGitHub {
8+ owner = "lunaryorn";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "0vgkx227wpg9l2zza6446wzshjhnrhba3qhabibn4gg8wwcqmmxf";
12+ };
13+
14+ cargoSha256 = "11h2whlgjhg3j98a9w9k29njj89wx93w0dcyf981985flin709sx";
15+
16+ nativeBuildInputs = [ pkgconfig ];
17+
18+ buildInputs = [ openssl ]
19+ ++ stdenv.lib.optionals stdenv.isDarwin [ curl libiconv Security ];
20+
21+ meta = with stdenv.lib; {
22+ description = "Cleanup stale Git branches of pull requests";
23+ homepage = "https://github.com/lunaryorn/git-gone";
24+ license = licenses.asl20;
25+ maintainers = [ maintainers.marsam ];
26+ platforms = platforms.unix;
27+ };
28+}