diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 8fa3f117deef..9f24d1836256 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 ]; + }; +}