summary refs log tree commit diff
path: root/pkgs/applications/version-management/git-and-tools/hub/default.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2012-12-12 06:45:43 +0100
committeraszlig <aszlig@redmoonstudios.org>2012-12-12 12:36:18 +0100
commitf1c80cf20c52c10d2091cc7ff8200482110b4df0 (patch)
treeba452b24957490aac5f45c1d4d6a0d572b575fea /pkgs/applications/version-management/git-and-tools/hub/default.nix
parentabb7c98cfe15fdb4c9541f816450b35e73c7cf86 (diff)
downloadnixlib-f1c80cf20c52c10d2091cc7ff8200482110b4df0.tar
nixlib-f1c80cf20c52c10d2091cc7ff8200482110b4df0.tar.gz
nixlib-f1c80cf20c52c10d2091cc7ff8200482110b4df0.tar.bz2
nixlib-f1c80cf20c52c10d2091cc7ff8200482110b4df0.tar.lz
nixlib-f1c80cf20c52c10d2091cc7ff8200482110b4df0.tar.xz
nixlib-f1c80cf20c52c10d2091cc7ff8200482110b4df0.tar.zst
nixlib-f1c80cf20c52c10d2091cc7ff8200482110b4df0.zip
git-and-tools/hub: New package, version 1.10.3.
This is a small wrapper of Git, which integrates some GitHub specific features,
especially stuff like merging or sending pull requests or attaching commits to
an issue.

I'm not quite familiar with the Nix integration of Ruby, so let's hope that I'm
not doing something horrible here.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/applications/version-management/git-and-tools/hub/default.nix')
-rw-r--r--pkgs/applications/version-management/git-and-tools/hub/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/hub/default.nix b/pkgs/applications/version-management/git-and-tools/hub/default.nix
new file mode 100644
index 000000000000..e545d2bc6f43
--- /dev/null
+++ b/pkgs/applications/version-management/git-and-tools/hub/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchgit, groff, rake, makeWrapper }:
+
+stdenv.mkDerivation rec {
+  name = "hub-${version}";
+  version = "1.10.3";
+
+  src = fetchgit {
+    url = "git://github.com/defunkt/hub.git";
+    rev = "refs/tags/v${version}";
+    sha256 = "0j0krmf0sf09hhw3nsn0w1y97d67762g4qrc8080bwcx38lbyvbg";
+  };
+
+  buildInputs = [ rake makeWrapper ];
+
+  installPhase = ''
+    rake install "prefix=$out"
+  '';
+
+  fixupPhase = ''
+    wrapProgram $out/bin/hub --prefix PATH : ${groff}/bin
+  '';
+
+  meta = {
+    description = "A GitHub specific wrapper for git";
+    homepage = "http://defunkt.io/hub/";
+    license = stdenv.lib.licenses.mit;
+  };
+}