2017-06-13 21:36:08 +01:00
|
|
|
{ stdenv, fetchurl, elk5Version, makeWrapper, jre }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = elk5Version;
|
|
|
|
name = "logstash-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://artifacts.elastic.co/downloads/logstash/${name}.tar.gz";
|
2018-01-17 00:27:23 +00:00
|
|
|
sha256 = "0cpim121ydxdjr251by9jw6pidh5b52jl5ldcm7gp015q49x1nl7";
|
2017-06-13 21:36:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
dontPatchELF = true;
|
|
|
|
dontStrip = true;
|
|
|
|
dontPatchShebangs = true;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
makeWrapper jre
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
2017-08-23 00:58:12 +01:00
|
|
|
cp -r {Gemfile*,modules,vendor,lib,bin,config,data,logstash-core,logstash-core-plugin-api} $out
|
2017-06-13 21:36:08 +01:00
|
|
|
|
|
|
|
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 = [ maintainers.wjlroe maintainers.offline ];
|
|
|
|
};
|
|
|
|
}
|