2014-06-04 13:28:08 +01:00
|
|
|
{ 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 = ''
|
2014-06-30 13:56:10 +01:00
|
|
|
mkdir -p $out
|
2014-06-04 13:28:08 +01:00
|
|
|
cp -a * $out/
|
|
|
|
substituteInPlace $out/bin/OpenGrok --replace /bin/uname ${coreutils}/bin/uname
|
|
|
|
wrapProgram $out/bin/OpenGrok \
|
2016-08-22 23:06:51 +01:00
|
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ ctags git ]}" \
|
2014-06-04 13:28:08 +01:00
|
|
|
--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 ];
|
|
|
|
};
|
|
|
|
}
|