2014-10-05 19:57:15 +02:00
|
|
|
{ stdenv, lib, fetchzip }:
|
|
|
|
|
|
|
|
# Note that plugins are supposed to be installed as:
|
2020-11-26 17:10:07 +01:00
|
|
|
# $path/logstash/{inputs,codecs,filters,outputs}/*.rb
|
2014-10-05 19:57:15 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.4.2";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "logstash-contrib";
|
2014-10-05 19:57:15 +02:00
|
|
|
|
|
|
|
src = fetchzip {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://download.elasticsearch.org/logstash/logstash/logstash-contrib-${version}.tar.gz";
|
2014-10-05 19:57:15 +02:00
|
|
|
sha256 = "1yj8sf3b526gixh3c6zhgkfpg4f0c72p1lzhfhdx8b3lw7zjkj0k";
|
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
dontPatchELF = true;
|
|
|
|
dontStrip = true;
|
|
|
|
dontPatchShebangs = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-11-26 17:10:07 +01:00
|
|
|
runHook preInstall
|
2014-10-05 19:57:15 +02:00
|
|
|
mkdir -p $out/logstash
|
|
|
|
cp -r lib/* $out
|
2020-11-26 17:10:07 +01:00
|
|
|
runHook postInstall
|
2014-10-05 19:57:15 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Community-maintained logstash plugins";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/elasticsearch/logstash-contrib";
|
2021-01-15 10:19:50 +01:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
platforms = lib.platforms.unix;
|
2014-10-05 19:57:15 +02:00
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
};
|
|
|
|
}
|