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