nixpkgs/pkgs/development/tools/misc/opengrok/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
788 B
Nix
Raw Normal View History

2023-03-16 10:42:52 +00:00
{ lib, stdenv, fetchurl, jre, makeWrapper }:
stdenv.mkDerivation rec {
pname = "opengrok";
2023-03-16 10:42:52 +00:00
version = "1.8.4";
2017-02-14 10:18:03 +00:00
# binary distribution
src = fetchurl {
url = "https://github.com/oracle/opengrok/releases/download/${version}/${pname}-${version}.tar.gz";
2023-03-16 10:42:52 +00:00
hash = "sha256-Xy8mTpdHorGGvUGHCDKOA2HaAJY3PBWjf6Pnll4Melk=";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
2023-03-16 10:42:52 +00:00
runHook preInstall
mkdir -p $out
cp -a * $out/
2023-03-16 10:42:52 +00:00
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/";
license = licenses.cddl;
maintainers = [ ];
};
}