opengrok: new package

Source code search and cross reference engine

http://opengrok.github.io/OpenGrok/
This commit is contained in:
Luca Bruno 2014-06-04 14:28:08 +02:00
parent 19fe19ea53
commit bc53b9ec4c
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{ fetchurl, stdenv, jre, ctags, makeWrapper, coreutils, git }:
stdenv.mkDerivation rec {
name = "opengrok-0.12.1";
src = fetchurl {
url = "http://java.net/projects/opengrok/downloads/download/${name}.tar.gz";
sha256 = "0ihaqgf1z2gsjmy2q96m0s07dpnh92j3ss3myiqjdsh9957fwg79";
};
buildInputs = [ makeWrapper ];
installPhase = ''
ensureDir $out
cp -a * $out/
substituteInPlace $out/bin/OpenGrok --replace /bin/uname ${coreutils}/bin/uname
wrapProgram $out/bin/OpenGrok \
--prefix PATH : "${ctags}/bin:${git}/bin" \
--set JAVA_HOME "${jre}" \
--set OPENGROK_TOMCAT_BASE "/var/tomcat"
'';
meta = with stdenv.lib; {
description = "Source code search and cross reference engine";
homepage = http://opengrok.github.io/OpenGrok/;
license = licenses.cddl;
maintainers = [ maintainers.lethalman ];
};
}

View File

@ -3978,6 +3978,8 @@ let
omake = callPackage ../development/tools/ocaml/omake { };
omake_rc1 = callPackage ../development/tools/ocaml/omake/0.9.8.6-rc1.nix { };
opengrok = callPackage ../development/tools/misc/opengrok { };
openocd = callPackage ../development/tools/misc/openocd { };
oprofile = callPackage ../development/tools/profiling/oprofile { };