nixpkgs-suyu/pkgs/tools/misc/graylog/default.nix
Tristan Helmich e617a31432 graylog: 3.3.8 -> 3.3.9
Bumps Graylog and integration plugins to version 3.3.9.
2020-11-25 19:41:00 +00:00

33 lines
896 B
Nix

{ stdenv, fetchurl, makeWrapper, jre_headless, nixosTests }:
stdenv.mkDerivation rec {
pname = "graylog";
version = "3.3.9";
src = fetchurl {
url = "https://packages.graylog2.org/releases/graylog/graylog-${version}.tgz";
sha256 = "1wl9j2jgjg5gwcsh92qr5f68wx12nvwadc9xkaa9wwd7x3z825jq";
};
dontBuild = true;
dontStrip = true;
buildInputs = [ makeWrapper ];
makeWrapperArgs = [ "--prefix" "PATH" ":" "${jre_headless}/bin" ];
passthru.tests = { inherit (nixosTests) graylog; };
installPhase = ''
mkdir -p $out
cp -r {graylog.jar,lib,bin,plugin} $out
wrapProgram $out/bin/graylogctl $makeWrapperArgs
'';
meta = with stdenv.lib; {
description = "Open source log management solution";
homepage = "https://www.graylog.org/";
license = licenses.gpl3;
platforms = platforms.unix;
maintainers = [ maintainers.fadenb ];
};
}