2018-07-21 00:44:44 +00:00
|
|
|
{ pkgs, stdenv, fetchurl, unzip, elasticsearch }:
|
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 ? ''
|
2014-10-06 14:21:51 +00:00
|
|
|
mkdir -p $out/bin
|
2014-07-05 10:09:53 +00:00
|
|
|
ES_HOME=$out ${elasticsearch}/bin/elasticsearch-plugin --install ${pluginName} --url 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 // {
|
|
|
|
platforms = elasticsearch.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 {
|
|
|
|
elasticsearch_river_jdbc = esPlugin rec {
|
|
|
|
name = "elasticsearch-river-jdbc-${version}";
|
2014-10-06 14:44:23 +00:00
|
|
|
pluginName = "elasticsearch-river-jdbc";
|
2015-08-19 22:20:31 +00:00
|
|
|
version = "1.5.0.5";
|
2014-07-05 10:09:53 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-river-jdbc/${version}/${name}-plugin.zip";
|
2015-08-19 22:20:31 +00:00
|
|
|
sha256 = "1p75l3vcnb90ar4j3dci2xf8dqnqyy31kc1r075fa2xqlsxgigcp";
|
2014-07-05 10:09:53 +00:00
|
|
|
};
|
|
|
|
meta = {
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = https://github.com/jprante/elasticsearch-river-jdbc;
|
2014-07-05 10:09:53 +00:00
|
|
|
description = "Plugin to fetch data from JDBC sources for indexing into Elasticsearch";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
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";
|
|
|
|
version = "0.1";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/vhyza/elasticsearch-analysis-lemmagen/releases/download/v${version}/${name}-plugin.zip";
|
|
|
|
sha256 = "bf7bf5ce3ccdd3afecd0e18cd6fce1ef56f824e41f4ef50553ae598caa5c366d";
|
|
|
|
};
|
|
|
|
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
|
|
|
|
|
|
|
elasticsearch_http_basic = stdenv.mkDerivation rec {
|
|
|
|
name = "elasticsearch-http-basic-${version}";
|
2015-08-19 22:20:31 +00:00
|
|
|
version = "1.5.0";
|
2014-09-13 00:22:26 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-08-19 22:20:31 +00:00
|
|
|
url = "https://github.com/Asquera/elasticsearch-http-basic/releases/download/v${version}/${name}.jar";
|
|
|
|
sha256 = "0fif6sbn2ich39lrgm039y9d5bxkylx9pvly04wss8rdhspvdskb";
|
2014-09-13 00:22:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = ["installPhase"];
|
|
|
|
installPhase = "install -D $src $out/plugins/http-basic/${name}.jar";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/Asquera/elasticsearch-http-basic;
|
|
|
|
description = "HTTP Basic Authentication for Elasticsearch";
|
|
|
|
license = licenses.mit;
|
2014-09-13 00:24:48 +00:00
|
|
|
platforms = elasticsearch.meta.platforms;
|
2014-09-13 00:22:26 +00:00
|
|
|
};
|
|
|
|
};
|
2014-10-16 18:29:10 +00:00
|
|
|
|
|
|
|
elasticsearch_river_twitter = esPlugin rec {
|
|
|
|
name = pname + "-" + version;
|
|
|
|
pname = "elasticsearch-river-twitter";
|
|
|
|
pluginName = "elasticsearch/" + pname + "/" + version;
|
2015-08-19 22:20:31 +00:00
|
|
|
version = "2.5.0";
|
2014-10-16 18:29:10 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.elasticsearch.org/elasticsearch/${pname}/${name}.zip";
|
2015-08-19 22:20:31 +00:00
|
|
|
sha256 = "0851yrmyrpp6whyxk34ykcj7b28f90w0nvkrhvl49dwqgr5s4mn4";
|
2014-10-16 18:29:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = https://github.com/elasticsearch/elasticsearch-river-twitter;
|
2014-10-16 18:29:10 +00:00
|
|
|
description = "Twitter River Plugin for ElasticSearch";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.edwtjo ];
|
|
|
|
platforms = elasticsearch.meta.platforms;
|
|
|
|
};
|
2015-04-25 13:54:00 +00:00
|
|
|
};
|
2014-10-16 18:29:10 +00:00
|
|
|
|
2015-04-25 13:54:00 +00:00
|
|
|
elasticsearch_kopf = esPlugin rec {
|
|
|
|
name = "elasticsearch-kopf-${version}";
|
|
|
|
pluginName = "elasticsearch-kopf";
|
2017-05-06 11:35:49 +00:00
|
|
|
version = "2.1.1";
|
2015-04-25 13:54:00 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/lmenezes/elasticsearch-kopf/archive/v${version}.zip";
|
2017-05-06 11:35:49 +00:00
|
|
|
sha256 = "1nwwd92g0jxhfpkxb1a9z5a62naa1y7hvlx400dm6mwwav3mrf4v";
|
2015-04-25 13:54:00 +00:00
|
|
|
};
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/lmenezes/elasticsearch-kopf;
|
|
|
|
description = "Web administration tool for ElasticSearch";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
2014-10-16 18:29:10 +00:00
|
|
|
};
|
2015-04-25 13:54:00 +00:00
|
|
|
|
2015-08-19 22:20:44 +00:00
|
|
|
search_guard = esPlugin rec {
|
|
|
|
name = "elastic-search-guard-${version}";
|
|
|
|
pluginName = "search-guard";
|
|
|
|
version = "0.5";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/floragunncom/search-guard/releases/download/v${version}/${pluginName}-${version}.zip";
|
|
|
|
sha256 = "1zima4jmq1rrcqxhlrp2xian80vp244d2splby015n5cgqrp39fl";
|
|
|
|
};
|
|
|
|
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
|
|
|
}
|