mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
33 lines
789 B
Nix
33 lines
789 B
Nix
{ lib, stdenv, fetchurl, jre, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "opengrok";
|
|
version = "1.12.4";
|
|
|
|
# binary distribution
|
|
src = fetchurl {
|
|
url = "https://github.com/oracle/opengrok/releases/download/${version}/${pname}-${version}.tar.gz";
|
|
hash = "sha256-pUHNLiZng8lIO+UFP6r6dfwPI6m8RRuuW2wS1pJXZmQ=";
|
|
};
|
|
|
|
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/";
|
|
license = licenses.cddl;
|
|
maintainers = [ ];
|
|
};
|
|
}
|