2018-08-03 08:44:19 +00:00
|
|
|
{ pkgs, stdenv, fetchurl, unzip, elasticsearch-oss, javaPackages, elk6Version }:
|
2014-07-05 10:09:53 +00:00
|
|
|
|
|
|
|
with pkgs.lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
esPlugin = a@{
|
2014-10-16 18:29:10 +00:00
|
|
|
pluginName,
|
2014-07-05 10:09:53 +00:00
|
|
|
installPhase ? ''
|
2018-08-03 08:44:19 +00: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 18:29:10 +00:00
|
|
|
'',
|
2014-07-05 10:09:53 +00:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation (a // {
|
|
|
|
inherit installPhase;
|
|
|
|
unpackPhase = "true";
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
meta = a.meta // {
|
2018-08-03 08:44:19 +00:00
|
|
|
platforms = elasticsearch-oss.meta.platforms;
|
2014-07-27 11:36:25 +00:00
|
|
|
maintainers = (a.meta.maintainers or []) ++ [ maintainers.offline ];
|
2014-07-05 10:09:53 +00:00
|
|
|
};
|
|
|
|
});
|
|
|
|
in {
|
|
|
|
|
2017-03-10 10:39:16 +00:00
|
|
|
elasticsearch_analysis_lemmagen = esPlugin rec {
|
2014-07-05 10:09:53 +00:00
|
|
|
name = "elasticsearch-analysis-lemmagen-${version}";
|
|
|
|
pluginName = "elasticsearch-analysis-lemmagen";
|
2018-08-03 08:54:28 +00:00
|
|
|
version = "${elk6Version}";
|
2014-07-05 10:09:53 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/vhyza/elasticsearch-analysis-lemmagen/releases/download/v${version}/${name}-plugin.zip";
|
2018-08-03 08:54:28 +00:00
|
|
|
sha256 = "1m4z05wixjrq4nlbdjyhvprkrwxjym8aba18scmzfn25fhbjgvkz";
|
2014-07-05 10:09:53 +00:00
|
|
|
};
|
|
|
|
meta = {
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = https://github.com/vhyza/elasticsearch-analysis-lemmagen;
|
2014-07-05 10:09:53 +00:00
|
|
|
description = "LemmaGen Analysis plugin provides jLemmaGen lemmatizer as Elasticsearch token filter";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
};
|
2014-09-13 00:22:26 +00:00
|
|
|
|
2014-10-16 18:29:10 +00:00
|
|
|
|
2015-08-19 22:20:44 +00:00
|
|
|
search_guard = esPlugin rec {
|
|
|
|
name = "elastic-search-guard-${version}";
|
|
|
|
pluginName = "search-guard";
|
2018-08-03 08:55:22 +00: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-19 22:20:44 +00:00
|
|
|
};
|
|
|
|
meta = {
|
|
|
|
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 10:09:53 +00:00
|
|
|
}
|