2023-03-24 00:07:29 +00:00
|
|
|
{ lib, stdenv, fetchurl, jre, makeWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "opengrok";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.12.14";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# binary distribution
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/oracle/opengrok/releases/download/${version}/${pname}-${version}.tar.gz";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-4v+fDmDnmoAZimf63nSCqUp0y+a5UKQBxNWSNp64XE4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2023-03-24 00:07:29 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
mkdir -p $out
|
|
|
|
cp -a * $out/
|
2023-03-24 00:07:29 +00:00
|
|
|
makeWrapper ${jre}/bin/java $out/bin/opengrok \
|
|
|
|
--add-flags "-jar $out/lib/opengrok.jar"
|
|
|
|
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Source code search and cross reference engine";
|
|
|
|
homepage = "https://opengrok.github.io/OpenGrok/";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/oracle/opengrok/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.cddl;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = [ ];
|
2023-05-24 13:37:59 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|