e842ffbb33
Contains a security fix for kibana: CVE-2018-3818. https://www.elastic.co/guide/en/elasticsearch/reference/current/release-notes-6.1.2.html https://www.elastic.co/guide/en/logstash/6.1/logstash-6-1-2.html https://www.elastic.co/guide/en/kibana/6.1/release-notes-6.1.2.html https://www.elastic.co/guide/en/beats/libbeat/6.1/release-notes-6.1.2.html
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ stdenv, fetchurl, elk6Version, makeWrapper, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = elk6Version;
|
|
name = "logstash-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://artifacts.elastic.co/downloads/logstash/${name}.tar.gz";
|
|
sha256 = "18680qpdvhr16dx66jfia1zrg52005sgdy9yhl7vdhm4gcr7pxwc";
|
|
};
|
|
|
|
dontBuild = true;
|
|
dontPatchELF = true;
|
|
dontStrip = true;
|
|
dontPatchShebangs = true;
|
|
|
|
buildInputs = [
|
|
makeWrapper jre
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -r {Gemfile*,modules,vendor,lib,bin,config,data,logstash-core,logstash-core-plugin-api} $out
|
|
|
|
wrapProgram $out/bin/logstash \
|
|
--set JAVA_HOME "${jre}"
|
|
|
|
wrapProgram $out/bin/logstash-plugin \
|
|
--set JAVA_HOME "${jre}"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Logstash is a data pipeline that helps you process logs and other event data from a variety of systems";
|
|
homepage = https://www.elastic.co/products/logstash;
|
|
license = licenses.asl20;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ wjlroe offline basvandijk ];
|
|
};
|
|
}
|