mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
ea5bc4fe75
Bump log4j 2 to 2.6.0. https://www.graylog.org/post/announcing-graylog-v3-3-16
34 lines
914 B
Nix
34 lines
914 B
Nix
{ lib, stdenv, fetchurl, makeWrapper, openjdk11_headless, nixosTests }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "graylog";
|
|
version = "3.3.16";
|
|
|
|
src = fetchurl {
|
|
url = "https://packages.graylog2.org/releases/graylog/graylog-${version}.tgz";
|
|
sha256 = "sha256-P/cnfYKnMSnDD4otEyirKlLaFduyfSO9sao4BY3c3Z4=";
|
|
};
|
|
|
|
dontBuild = true;
|
|
dontStrip = true;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
makeWrapperArgs = [ "--set-default" "JAVA_HOME" "${openjdk11_headless}" ];
|
|
|
|
passthru.tests = { inherit (nixosTests) graylog; };
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -r {graylog.jar,lib,bin,plugin} $out
|
|
wrapProgram $out/bin/graylogctl $makeWrapperArgs
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Open source log management solution";
|
|
homepage = "https://www.graylog.org/";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.fadenb ];
|
|
};
|
|
}
|