mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-13 23:53:26 +00:00
![aleksana](/assets/img/avatar_default.png)
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
36 lines
929 B
Nix
36 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;
|
|
};
|
|
}
|