Skip to content

Commit

Permalink
Merge pull request #24938 from jlesquembre/git-open
Browse files Browse the repository at this point in the history
git-open: init at 1.3.0
  • Loading branch information
Mic92 committed Apr 16, 2017
2 parents 3753122 + cb62419 commit f16b29e
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/maintainers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@
jgillich = "Jakob Gillich <jakob@gillich.me>";
jhhuh = "Ji-Haeng Huh <jhhuh.note@gmail.com>";
jirkamarsik = "Jirka Marsik <jiri.marsik89@gmail.com>";
jlesquembre = "José Luis Lafuente <jl@lafuente.me>";
joachifm = "Joachim Fasting <joachifm@fastmail.fm>";
joamaki = "Jussi Maki <joamaki@gmail.com>";
joelmo = "Joel Moberg <joel.moberg@gmail.com>";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ rec {

git-octopus = callPackage ./git-octopus { };

git-open = callPackage ./git-open { };

git-radar = callPackage ./git-radar { };

git-remote-hg = callPackage ./git-remote-hg { };
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{stdenv, git, xdg_utils, gnugrep, fetchFromGitHub, makeWrapper}:

stdenv.mkDerivation rec {
name = "git-open-${version}";
version = "1.3.0";

src = fetchFromGitHub {
owner = "paulirish";
repo = "git-open";
rev = "v${version}";
sha256 = "005am4phf7j4ybc9k1hqsxjb7gv2i56a3axrza866pwwx1ayrhpq";
};

buildInputs = [ makeWrapper ];

buildPhase = null;

installPhase = ''
mkdir -p $out/bin
cp git-open $out/bin
wrapProgram $out/bin/git-open \
--prefix PATH : "${stdenv.lib.makeBinPath [ git xdg_utils gnugrep ]}"
'';

meta = with stdenv.lib; {
homepage = https://github.com/paulirish/git-open;
description = "Open the GitHub page or website for a repository in your browser";
license = licenses.mit;
platforms = platforms.all;
maintainers = [ maintainers.jlesquembre ];
};
}

0 comments on commit f16b29e

Please sign in to comment.