depot/third_party/nixpkgs/pkgs/development/tools/misc/opengrok/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

34 lines
899 B
Nix

{ lib, stdenv, fetchurl, jre, makeWrapper }:
stdenv.mkDerivation rec {
pname = "opengrok";
version = "1.12.12";
# binary distribution
src = fetchurl {
url = "https://github.com/oracle/opengrok/releases/download/${version}/${pname}-${version}.tar.gz";
hash = "sha256-0ppkexmVchHL+lCfB+xtLcDCZ24Sv0Opr5RNLILKg2M=";
};
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;
};
}