git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #64433 from marsam/init-git-gone

gitAndTools.git-gone: init at 0.1.2

commita7d2016f0eeb8d9afaa7fc22ab0ae8f526ab27b8 authorworldofpeace <worldofpeace@protonmail.ch> dateMon 8 Jul 2019, 23:21 (7 years ago) parent38c7c5d9719889
2 files changed+32
pkgs/applications/version-management/git-and-tools/default.nix+4 pkgs/applications/version-management/git-and-tools/git-gone/default.nix+28
pkgs/applications/version-management/git-and-tools/default.nix+4
@@ -89,6 +89,10 @@ let
8989
9090 git-extras = callPackage ./git-extras { };
9191
92+ git-gone = callPackage ./git-gone {
93+ inherit (darwin.apple_sdk.frameworks) Security;
94+ };
95+
9296 git-hub = callPackage ./git-hub { };
9397
9498 git-ignore = callPackage ./git-ignore { };
pkgs/applications/version-management/git-and-tools/git-gone/default.nixnew file+28
@@ -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+}