about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-07-07 23:39:45 -0500
committerMario Rodas <marsam@users.noreply.github.com>2019-07-07 23:39:45 -0500
commit9719889377dd8b383e75fda19ef3008d7efa02e5 (patch)
tree1c7cae66fe8b5999bccebb1f0ecef9b15285a87e
parent38c7c5d3229c67a7aaff984eb92e1f0912351ef9 (diff)
downloadnixlib-9719889377dd8b383e75fda19ef3008d7efa02e5.tar
nixlib-9719889377dd8b383e75fda19ef3008d7efa02e5.tar.gz
nixlib-9719889377dd8b383e75fda19ef3008d7efa02e5.tar.bz2
nixlib-9719889377dd8b383e75fda19ef3008d7efa02e5.tar.lz
nixlib-9719889377dd8b383e75fda19ef3008d7efa02e5.tar.xz
nixlib-9719889377dd8b383e75fda19ef3008d7efa02e5.tar.zst
nixlib-9719889377dd8b383e75fda19ef3008d7efa02e5.zip
gitAndTools.git-gone: init at 0.1.2
-rw-r--r--pkgs/applications/version-management/git-and-tools/default.nix4
-rw-r--r--pkgs/applications/version-management/git-and-tools/git-gone/default.nix28
2 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/default.nix b/pkgs/applications/version-management/git-and-tools/default.nix
index 58bd6a35f11d..5068647e8798 100644
--- a/pkgs/applications/version-management/git-and-tools/default.nix
+++ b/pkgs/applications/version-management/git-and-tools/default.nix
@@ -89,6 +89,10 @@ let
 
   git-extras = callPackage ./git-extras { };
 
+  git-gone = callPackage ./git-gone {
+    inherit (darwin.apple_sdk.frameworks) Security;
+  };
+
   git-hub = callPackage ./git-hub { };
 
   git-ignore = callPackage ./git-ignore { };
diff --git a/pkgs/applications/version-management/git-and-tools/git-gone/default.nix b/pkgs/applications/version-management/git-and-tools/git-gone/default.nix
new file mode 100644
index 000000000000..d445e0181f43
--- /dev/null
+++ b/pkgs/applications/version-management/git-and-tools/git-gone/default.nix
@@ -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;
+  };
+}