depot/third_party/nixpkgs/pkgs/development/tools/misc/opengrok/default.nix
Default email 24fdeddc0a Project import generated by Copybara.
GitOrigin-RevId: 2768c7d042a37de65bb1b5b3268fc987e534c49d
2024-10-23 09:41:50 +03:00

35 lines
929 B
Nix

{ lib, stdenv, fetchurl, jre, makeWrapper }:
stdenv.mkDerivation rec {
pname = "opengrok";
version = "1.13.23";
# binary distribution
src = fetchurl {
url = "https://github.com/oracle/opengrok/releases/download/${version}/${pname}-${version}.tar.gz";
hash = "sha256-Fe4K6nBVg0l4Z3CW+k0OpUF8JEu+uINsA+jdAFJGmx8=";
};
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";
mainProgram = "opengrok";
homepage = "https://opengrok.github.io/OpenGrok/";
changelog = "https://github.com/oracle/opengrok/releases/tag/${version}";
license = licenses.cddl;
maintainers = [ ];
platforms = platforms.all;
};
}