2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, fetchzip }:
|
|
|
|
|
|
|
|
# Note that plugins are supposed to be installed as:
|
2020-11-30 08:33:03 +00:00
|
|
|
# $path/logstash/{inputs,codecs,filters,outputs}/*.rb
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.4.2";
|
|
|
|
pname = "logstash-contrib";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://download.elasticsearch.org/logstash/logstash/logstash-contrib-${version}.tar.gz";
|
|
|
|
sha256 = "1yj8sf3b526gixh3c6zhgkfpg4f0c72p1lzhfhdx8b3lw7zjkj0k";
|
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
dontPatchELF = true;
|
|
|
|
dontStrip = true;
|
|
|
|
dontPatchShebangs = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-11-30 08:33:03 +00:00
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
mkdir -p $out/logstash
|
|
|
|
cp -r lib/* $out
|
2020-11-30 08:33:03 +00:00
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Community-maintained logstash plugins";
|
|
|
|
homepage = "https://github.com/elasticsearch/logstash-contrib";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
platforms = lib.platforms.unix;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|