2016-09-30 02:55:25 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper, jre }:
|
2012-07-11 12:23:14 +01:00
|
|
|
|
2014-07-11 17:50:02 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-10-01 22:11:30 +01:00
|
|
|
version = "2.4.0";
|
2014-07-11 17:50:02 +01:00
|
|
|
name = "logstash-${version}";
|
2012-07-11 12:23:14 +01:00
|
|
|
|
2014-07-11 17:50:02 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.elasticsearch.org/logstash/logstash/logstash-${version}.tar.gz";
|
2016-10-01 22:11:30 +01:00
|
|
|
sha256 = "1k27hb6q1r26rp3y9pb2ry92kicw83mi352dzl2y4h0gbif46b32";
|
2014-07-11 17:50:02 +01:00
|
|
|
};
|
2012-07-11 12:23:14 +01:00
|
|
|
|
2015-08-19 22:09:03 +01:00
|
|
|
dontBuild = true;
|
|
|
|
dontPatchELF = true;
|
|
|
|
dontStrip = true;
|
2014-07-14 17:54:20 +01:00
|
|
|
dontPatchShebangs = true;
|
2012-07-11 12:23:14 +01:00
|
|
|
|
2016-09-30 02:55:25 +01:00
|
|
|
buildInputs = [
|
|
|
|
makeWrapper jre
|
|
|
|
];
|
2016-10-01 22:11:30 +01:00
|
|
|
|
2014-07-11 17:50:02 +01:00
|
|
|
installPhase = ''
|
2015-09-06 13:46:31 +01:00
|
|
|
mkdir -p $out
|
2015-12-04 13:21:58 +00:00
|
|
|
cp -r {Gemfile*,vendor,lib,bin} $out
|
2016-10-01 22:11:30 +01:00
|
|
|
|
2016-09-30 02:55:25 +01:00
|
|
|
wrapProgram $out/bin/logstash \
|
|
|
|
--set JAVA_HOME "${jre}"
|
2016-10-01 22:11:30 +01:00
|
|
|
|
2016-09-30 02:55:25 +01:00
|
|
|
wrapProgram $out/bin/rspec \
|
|
|
|
--set JAVA_HOME "${jre}"
|
2016-10-02 08:31:59 +01:00
|
|
|
|
|
|
|
wrapProgram $out/bin/logstash-plugin \
|
|
|
|
--set JAVA_HOME "${jre}"
|
2014-07-11 17:50:02 +01:00
|
|
|
'';
|
|
|
|
|
2015-09-06 13:46:31 +01: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 13:46:31 +01:00
|
|
|
homepage = https://www.elastic.co/products/logstash;
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.wjlroe maintainers.offline ];
|
2014-07-11 17:50:02 +01:00
|
|
|
};
|
2012-07-11 12:23:14 +01:00
|
|
|
}
|