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";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.13.7";
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-vGzwXs4i9NiIz5M4JfoweJdpP5vbPKCdeUlE5xueYc4=";
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "opengrok";
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|