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