2016-09-30 01:55:25 +00:00
|
|
|
{ stdenv, fetchurl, makeWrapper, jre }:
|
2012-07-11 11:23:14 +00:00
|
|
|
|
2014-07-11 16:50:02 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-07-27 15:45:38 +00:00
|
|
|
version = "2.3.4";
|
2014-07-11 16:50:02 +00:00
|
|
|
name = "logstash-${version}";
|
2012-07-11 11:23:14 +00:00
|
|
|
|
2014-07-11 16:50:02 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.elasticsearch.org/logstash/logstash/logstash-${version}.tar.gz";
|
2016-07-27 15:45:38 +00:00
|
|
|
sha256 = "10wm4f5ygzifk84c1n9yyj285ccn2zd2m61y6hyf6wirvhys0qkz";
|
2014-07-11 16:50:02 +00:00
|
|
|
};
|
2012-07-11 11:23:14 +00:00
|
|
|
|
2015-08-19 21:09:03 +00:00
|
|
|
dontBuild = true;
|
|
|
|
dontPatchELF = true;
|
|
|
|
dontStrip = true;
|
2014-07-14 16:54:20 +00:00
|
|
|
dontPatchShebangs = true;
|
2012-07-11 11:23:14 +00:00
|
|
|
|
2016-09-30 01:55:25 +00:00
|
|
|
buildInputs = [
|
|
|
|
makeWrapper jre
|
|
|
|
];
|
|
|
|
|
2014-07-11 16:50:02 +00:00
|
|
|
installPhase = ''
|
2015-09-06 12:46:31 +00:00
|
|
|
mkdir -p $out
|
2015-12-04 13:21:58 +00:00
|
|
|
cp -r {Gemfile*,vendor,lib,bin} $out
|
|
|
|
mv $out/bin/plugin $out/bin/logstash-plugin
|
2016-09-30 01:55:25 +00:00
|
|
|
|
|
|
|
wrapProgram $out/bin/logstash \
|
|
|
|
--set JAVA_HOME "${jre}"
|
|
|
|
|
|
|
|
wrapProgram $out/bin/rspec \
|
|
|
|
--set JAVA_HOME "${jre}"
|
2014-07-11 16:50:02 +00:00
|
|
|
'';
|
|
|
|
|
2015-09-06 12:46:31 +00:00
|
|
|
meta = with stdenv.lib; {
|
2016-02-27 17:24:00 +00:00
|
|
|
description = "Logstash is a data pipeline that helps you process logs and other event data from a variety of systems";
|
2015-09-06 12:46:31 +00:00
|
|
|
homepage = https://www.elastic.co/products/logstash;
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.wjlroe maintainers.offline ];
|
2014-07-11 16:50:02 +00:00
|
|
|
};
|
2012-07-11 11:23:14 +00:00
|
|
|
}
|