depot/third_party/nixpkgs/pkgs/tools/misc/graylog/default.nix
Default email 9c6d255489 Project import generated by Copybara.
GitOrigin-RevId: 8133b9cb5f7c00d4fe31c8c2c4b525bc2650bfc0
2020-10-16 20:44:37 +00:00

33 lines
896 B
Nix

{ stdenv, fetchurl, makeWrapper, jre_headless, nixosTests }:
stdenv.mkDerivation rec {
pname = "graylog";
version = "3.3.8";
src = fetchurl {
url = "https://packages.graylog2.org/releases/graylog/graylog-${version}.tgz";
sha256 = "0y5c7sgdswh2p50plv78vkva0wwlyh2vh3qy3mymq48nqpzrbirp";
};
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 ];
};
}