summary refs log tree commit diff
path: root/pkgs/servers/search/elasticsearch
diff options
context:
space:
mode:
authorash lea <ashlea@protonmail.com>2019-11-09 20:51:57 -0800
committerash lea <ashlea@protonmail.com>2019-11-09 20:53:00 -0800
commit98875b5b4e98acbbc6b8431f803c3c06df37bcef (patch)
tree021a60c90a0ddeaaac605505d7b33327802d3b2b /pkgs/servers/search/elasticsearch
parentd2d009f4a6b930678c65f5ed13a4f48b3575e2a4 (diff)
downloadnixpkgs-98875b5b4e98acbbc6b8431f803c3c06df37bcef.tar
nixpkgs-98875b5b4e98acbbc6b8431f803c3c06df37bcef.tar.gz
nixpkgs-98875b5b4e98acbbc6b8431f803c3c06df37bcef.tar.bz2
nixpkgs-98875b5b4e98acbbc6b8431f803c3c06df37bcef.tar.lz
nixpkgs-98875b5b4e98acbbc6b8431f803c3c06df37bcef.tar.xz
nixpkgs-98875b5b4e98acbbc6b8431f803c3c06df37bcef.tar.zst
nixpkgs-98875b5b4e98acbbc6b8431f803c3c06df37bcef.zip
elasticsearchPlugins: add ingest-attachment
Diffstat (limited to 'pkgs/servers/search/elasticsearch')
-rw-r--r--pkgs/servers/search/elasticsearch/plugins.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/servers/search/elasticsearch/plugins.nix b/pkgs/servers/search/elasticsearch/plugins.nix
index 3a480bd7467..bb5c56f0b8f 100644
--- a/pkgs/servers/search/elasticsearch/plugins.nix
+++ b/pkgs/servers/search/elasticsearch/plugins.nix
@@ -62,6 +62,25 @@ in {
     };
   };
 
+  ingest-attachment = esPlugin rec {
+    name = "elasticsearch-ingest-attachment-${version}";
+    pluginName = "ingest-attachment";
+    version = esVersion;
+    src = pkgs.fetchurl {
+      url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/${pluginName}/${pluginName}-${version}.zip";
+      sha256 =
+        if version == "7.0.1" then "03hnw0g3gyvs1aby75b3wz093dn5dsyn2845hxxwh1n2s8csswkk"
+        else if version == "6.7.2" then "1dgb0gx4q5xlhkchwxbsaml3i1w9vzppnw068b8kfdq5g5wi31kd"
+        else if version == "5.6.16" then "0qp9r6n0f24adxpb0142nw80a89pfx4hns82l61ssmykawsrfhkg"
+        else throw "unsupported version ${version} for plugin ${pluginName}";
+    };
+    meta = with stdenv.lib; {
+      homepage = https://github.com/elastic/elasticsearch/tree/master/plugins/ingest-attachment;
+      description = "Ingest processor that uses Apache Tika to extract contents";
+      license = licenses.asl20;
+    };
+  };
+
   repository-s3 = esPlugin rec {
     name = "elasticsearch-repository-s3-${version}";
     pluginName = "repository-s3";