aboutsummaryrefslogtreecommitdiff
path: root/pkgs/servers/search
diff options
context:
space:
mode:
authorNick Braga <nick.braga@bookbub.com>2020-02-25 10:05:34 -0500
committerNick Braga <nick.braga@bookbub.com>2020-02-25 10:05:34 -0500
commitc1e376e4f906539d6e580d73f092f75c964f1463 (patch)
tree80787966d27fca94a3e84dc20aaf547709459ea4 /pkgs/servers/search
parent8246c35875d1564b99e2e65db229abaa11a09386 (diff)
elasticsearchPlugins: add analysis-icu plugin
Diffstat (limited to 'pkgs/servers/search')
-rw-r--r--pkgs/servers/search/elasticsearch/plugins.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/servers/search/elasticsearch/plugins.nix b/pkgs/servers/search/elasticsearch/plugins.nix
index cdab1fce7b0d..ad3654f17dfb 100644
--- a/pkgs/servers/search/elasticsearch/plugins.nix
+++ b/pkgs/servers/search/elasticsearch/plugins.nix
@@ -18,6 +18,9 @@ let
inherit installPhase;
pname = "elasticsearch-${pluginName}";
dontUnpack = true;
+ # Work around the "unpacker appears to have produced no directories"
+ # case that happens when the archive doesn't have a subdirectory.
+ setSourceRoot = "sourceRoot=$(pwd)";
buildInputs = [ unzip ];
meta = a.meta // {
platforms = elasticsearch.meta.platforms;
@@ -26,6 +29,24 @@ let
});
in {
+ analysis-icu = esPlugin rec {
+ name = "elasticsearch-analysis-icu-${version}";
+ pluginName = "analysis-icu";
+ version = esVersion;
+ src = fetchurl {
+ url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/${pluginName}/${pluginName}-${version}.zip";
+ sha256 =
+ if version == "7.5.1" then "0v6ynbk34g7pl9cwy8ga8bk1my18jb6pc3pqbjl8p93w38219vi6"
+ else if version == "6.8.3" then "0vbaqyj0lfy3ijl1c9h92b0nh605h5mjs57bk2zhycdvbw5sx2lv"
+ else throw "unsupported version ${version} for plugin ${pluginName}";
+ };
+ meta = with stdenv.lib; {
+ homepage = https://github.com/elastic/elasticsearch/tree/master/plugins/analysis-icu;
+ description = "The ICU Analysis plugin integrates the Lucene ICU module into elasticsearch";
+ license = licenses.asl20;
+ };
+ };
+
analysis-lemmagen = esPlugin rec {
pluginName = "analysis-lemmagen";
version = esVersion;