5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
34 lines
899 B
Nix
34 lines
899 B
Nix
{ lib, stdenv, fetchurl, jre, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "opengrok";
|
|
version = "1.12.14";
|
|
|
|
# binary distribution
|
|
src = fetchurl {
|
|
url = "https://github.com/oracle/opengrok/releases/download/${version}/${pname}-${version}.tar.gz";
|
|
hash = "sha256-4v+fDmDnmoAZimf63nSCqUp0y+a5UKQBxNWSNp64XE4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out
|
|
cp -a * $out/
|
|
makeWrapper ${jre}/bin/java $out/bin/opengrok \
|
|
--add-flags "-jar $out/lib/opengrok.jar"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Source code search and cross reference engine";
|
|
homepage = "https://opengrok.github.io/OpenGrok/";
|
|
changelog = "https://github.com/oracle/opengrok/releases/tag/${version}";
|
|
license = licenses.cddl;
|
|
maintainers = [ ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|