From cb624198e8a05f5c1397d74202bee85ed9eacecd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Lafuente?= Date: Sat, 15 Apr 2017 21:25:59 +0200 Subject: [PATCH] git-open: init at 1.3.0 --- lib/maintainers.nix | 1 + .../git-and-tools/default.nix | 2 ++ .../git-and-tools/git-open/default.nix | 32 +++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 pkgs/applications/version-management/git-and-tools/git-open/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 450d880663cb..ed162461d96a 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -238,6 +238,7 @@ jgillich = "Jakob Gillich "; jhhuh = "Ji-Haeng Huh "; jirkamarsik = "Jirka Marsik "; + jlesquembre = "José Luis Lafuente "; joachifm = "Joachim Fasting "; joamaki = "Jussi Maki "; joelmo = "Joel Moberg "; diff --git a/pkgs/applications/version-management/git-and-tools/default.nix b/pkgs/applications/version-management/git-and-tools/default.nix index 5546d597e36a..6e0338da9194 100644 --- a/pkgs/applications/version-management/git-and-tools/default.nix +++ b/pkgs/applications/version-management/git-and-tools/default.nix @@ -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 { }; diff --git a/pkgs/applications/version-management/git-and-tools/git-open/default.nix b/pkgs/applications/version-management/git-and-tools/git-open/default.nix new file mode 100644 index 000000000000..6b696821f1c9 --- /dev/null +++ b/pkgs/applications/version-management/git-and-tools/git-open/default.nix @@ -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 ]; + }; +}