nixpkgs/pkgs/servers/search/elasticsearch/plugins.nix

69 lines
2.5 KiB
Nix
Raw Normal View History

{ pkgs, stdenv, fetchurl, unzip, elasticsearch-oss, javaPackages, elk6Version }:
2014-07-05 12:09:53 +02:00
let
esPlugin = a@{
pluginName,
2014-07-05 12:09:53 +02:00
installPhase ? ''
mkdir -p $out/config
mkdir -p $out/plugins
ES_HOME=$out ${elasticsearch-oss}/bin/elasticsearch-plugin install --batch -v file://$src
'',
2014-07-05 12:09:53 +02:00
...
}:
stdenv.mkDerivation (a // {
inherit installPhase;
unpackPhase = "true";
buildInputs = [ unzip ];
meta = a.meta // {
platforms = elasticsearch-oss.meta.platforms;
maintainers = (a.meta.maintainers or []) ++ (with stdenv.lib.maintainers; [ offline ]);
2014-07-05 12:09:53 +02:00
};
});
in {
elasticsearch_analysis_lemmagen = esPlugin rec {
2014-07-05 12:09:53 +02:00
name = "elasticsearch-analysis-lemmagen-${version}";
pluginName = "elasticsearch-analysis-lemmagen";
version = "${elk6Version}";
2014-07-05 12:09:53 +02:00
src = fetchurl {
url = "https://github.com/vhyza/elasticsearch-analysis-lemmagen/releases/download/v${version}/${name}-plugin.zip";
2018-11-29 17:10:15 +01:00
sha256 = "0299ldqwjn1gn44yyjiqjrxvs6mlclhzl1dbn6xlgg1a2lkaal4v";
2014-07-05 12:09:53 +02:00
};
meta = with stdenv.lib; {
homepage = https://github.com/vhyza/elasticsearch-analysis-lemmagen;
2014-07-05 12:09:53 +02:00
description = "LemmaGen Analysis plugin provides jLemmaGen lemmatizer as Elasticsearch token filter";
license = licenses.asl20;
};
};
discovery-ec2 = esPlugin rec {
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";
2018-11-29 17:10:15 +01:00
sha256 = "1mg9knbc4r21kaiqnmkd8nzf2i23w5zxqnxyz484q0l2jf4hlkq1";
};
meta = with stdenv.lib; {
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;
};
};
2015-08-20 00:20:44 +02:00
search_guard = esPlugin rec {
name = "elastic-search-guard-${version}";
pluginName = "search-guard";
2018-11-29 17:10:15 +01:00
version = "${elk6Version}-23.2";
src = fetchurl rec {
url = "mirror://maven/com/floragunn/search-guard-6/${version}/search-guard-6-${version}.zip";
2018-11-29 17:10:15 +01:00
sha256 = "05310wyxzhylxr0dfgzr10pb0pak30ry8r97g49n6iqj8dw3csnb";
2015-08-20 00:20:44 +02:00
};
meta = with stdenv.lib; {
2015-08-20 00:20:44 +02: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 12:09:53 +02:00
}