3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/version-management/git-and-tools/git-gone/default.nix

29 lines
806 B
Nix
Raw Normal View History

2019-07-08 05:39:45 +01:00
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, curl, libiconv, Security }:
rustPlatform.buildRustPackage rec {
pname = "git-gone";
2019-12-15 01:20:20 +00:00
version = "0.2.0";
2019-07-08 05:39:45 +01:00
src = fetchFromGitHub {
owner = "lunaryorn";
repo = pname;
rev = "v${version}";
2019-12-15 01:20:20 +00:00
sha256 = "11b0adh46fr0j61pz286pycqz15m1b9pfvlz7z08cd0gw526l3f0";
2019-07-08 05:39:45 +01:00
};
2019-12-15 01:20:20 +00:00
cargoSha256 = "1s3v5p6qgz74sh34gvajf453fsgl13sds4v8hz8c6ivipz4hpby2";
2019-07-08 05:39:45 +01:00
nativeBuildInputs = [ pkgconfig ];
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
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;
};
}