2019-12-22 05:00:00 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, makeWrapper, openssl, git, libiconv, Security }:
|
2019-07-08 05:39:45 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "git-gone";
|
2019-12-22 05:00:00 +00:00
|
|
|
version = "0.3.0";
|
2019-07-08 05:39:45 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lunaryorn";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-12-22 05:00:00 +00:00
|
|
|
sha256 = "05wlng563p9iy0ky3z23a4jakcix887fb45r7j2mk0fp5ykdjmzh";
|
2019-07-08 05:39:45 +01:00
|
|
|
};
|
|
|
|
|
2020-02-26 04:12:45 +00:00
|
|
|
cargoSha256 = "1scp9rzn59akxsf9p48j1zq6clbwdyasnyi4j28nj03ghvdv2i33";
|
2019-07-08 05:39:45 +01:00
|
|
|
|
2019-12-22 05:00:00 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper ];
|
2019-07-08 05:39:45 +01:00
|
|
|
|
|
|
|
buildInputs = [ openssl ]
|
2019-12-15 01:20:20 +00:00
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
|
2019-07-08 05:39:45 +01:00
|
|
|
|
2019-12-22 05:00:00 +00:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/git-gone --prefix PATH : "${stdenv.lib.makeBinPath [ git ]}"
|
|
|
|
'';
|
|
|
|
|
2019-07-08 05:39:45 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|