mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
6baf442a9e
With this change, our ofborg CI will run the integration test as well if a PR changes the `graylog` package.
34 lines
896 B
Nix
34 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 ];
|
|
};
|
|
}
|