2018-08-03 11:44:19 +03:00
|
|
|
{ pkgs, stdenv, fetchurl, unzip, elasticsearch-oss, javaPackages, elk6Version }:
|
2014-07-05 14:09:53 +04:00
|
|
|
|
|
|
|
let
|
|
|
|
esPlugin = a@{
|
2014-10-16 22:29:10 +04:00
|
|
|
pluginName,
|
2014-07-05 14:09:53 +04:00
|
|
|
installPhase ? ''
|
2018-08-03 11:44:19 +03:00
|
|
|
mkdir -p $out/config
|
|
|
|
mkdir -p $out/plugins
|
|
|
|
ES_HOME=$out ${elasticsearch-oss}/bin/elasticsearch-plugin install --batch -v file://$src
|
2014-10-16 22:29:10 +04:00
|
|
|
'',
|
2014-07-05 14:09:53 +04:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation (a // {
|
|
|
|
inherit installPhase;
|
|
|
|
unpackPhase = "true";
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
meta = a.meta // {
|
2018-08-03 11:44:19 +03:00
|
|
|
platforms = elasticsearch-oss.meta.platforms;
|
2018-09-01 16:08:44 +03:00
|
|
|
maintainers = (a.meta.maintainers or []) ++ (with stdenv.lib.maintainers; [ offline ]);
|
2014-07-05 14:09:53 +04:00
|
|
|
};
|
|
|
|
});
|
|
|
|
in {
|
|
|
|
|
2017-03-10 13:39:16 +03:00
|
|
|
elasticsearch_analysis_lemmagen = esPlugin rec {
|
2014-07-05 14:09:53 +04:00
|
|
|
name = "elasticsearch-analysis-lemmagen-${version}";
|
|
|
|
pluginName = "elasticsearch-analysis-lemmagen";
|
2018-08-03 11:54:28 +03:00
|
|
|
version = "${elk6Version}";
|
2014-07-05 14:09:53 +04:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/vhyza/elasticsearch-analysis-lemmagen/releases/download/v${version}/${name}-plugin.zip";
|
2018-08-03 11:54:28 +03:00
|
|
|
sha256 = "1m4z05wixjrq4nlbdjyhvprkrwxjym8aba18scmzfn25fhbjgvkz";
|
2014-07-05 14:09:53 +04:00
|
|
|
};
|
2018-09-01 16:08:44 +03:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 23:03:30 +03:00
|
|
|
homepage = https://github.com/vhyza/elasticsearch-analysis-lemmagen;
|
2014-07-05 14:09:53 +04:00
|
|
|
description = "LemmaGen Analysis plugin provides jLemmaGen lemmatizer as Elasticsearch token filter";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
};
|
2014-09-13 04:22:26 +04:00
|
|
|
|
2018-09-01 16:08:44 +03:00
|
|
|
discovery-ec2 = esPlugin rec {
|
2018-08-03 11:58:42 +03:00
|
|
|
name = "elasticsearch-discovery-ec2-${version}";
|
|
|
|
pluginName = "discovery-ec2";
|
|
|
|
version = "${elk6Version}";
|
|
|
|
src = pkgs.fetchurl {
|
|
|
|
url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/discovery-ec2/discovery-ec2-${elk6Version}.zip";
|
|
|
|
sha256 = "1i7ksy69132sr84h51lamgq967yz3a3dw0b54nckxpqwad9pcpj0";
|
|
|
|
};
|
2018-09-01 16:08:44 +03:00
|
|
|
meta = with stdenv.lib; {
|
2018-08-03 11:58:42 +03:00
|
|
|
homepage = https://github.com/elastic/elasticsearch/tree/master/plugins/discovery-ec2;
|
|
|
|
description = "The EC2 discovery plugin uses the AWS API for unicast discovery.";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
};
|
2014-10-16 22:29:10 +04:00
|
|
|
|
2015-08-20 01:20:44 +03:00
|
|
|
search_guard = esPlugin rec {
|
|
|
|
name = "elastic-search-guard-${version}";
|
|
|
|
pluginName = "search-guard";
|
2018-08-03 11:55:22 +03:00
|
|
|
version = "${elk6Version}-22.3";
|
|
|
|
src = fetchurl rec {
|
|
|
|
url = "mirror://maven/com/floragunn/search-guard-6/${version}/search-guard-6-${version}.zip";
|
|
|
|
sha256 = "1r71h4h9bmxak1mq5gpm19xq5ji1gry1kp3sjmm8azy4ykdqdncx";
|
2015-08-20 01:20:44 +03:00
|
|
|
};
|
2018-09-01 16:08:44 +03:00
|
|
|
meta = with stdenv.lib; {
|
2015-08-20 01:20:44 +03:00
|
|
|
homepage = https://github.com/floragunncom/search-guard;
|
|
|
|
description = "Plugin to fetch data from JDBC sources for indexing into Elasticsearch";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
};
|
2014-07-05 14:09:53 +04:00
|
|
|
}
|