2014-07-11 17:50:02 +01:00
|
|
|
{ stdenv, fetchurl }:
|
2012-07-11 12:23:14 +01:00
|
|
|
|
2014-07-11 17:50:02 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-08-19 22:09:03 +01:00
|
|
|
version = "1.5.3";
|
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";
|
2015-08-19 22:09:03 +01:00
|
|
|
sha256 = "1an476k4q2shdxvhcx4fzbrcpk6isjrrvzlb6ivxfqg5fih3cg7b";
|
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
|
|
|
|
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
|
|
|
|
mv $out/bin/plugin $out/bin/logstash-plugin
|
2014-07-11 17:50:02 +01:00
|
|
|
'';
|
|
|
|
|
2015-09-06 13:46:31 +01:00
|
|
|
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 ];
|
2014-07-11 17:50:02 +01:00
|
|
|
};
|
2012-07-11 12:23:14 +01:00
|
|
|
}
|