depot/third_party/nixpkgs/pkgs/development/tools/misc/opengrok/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

34 lines
899 B
Nix

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