elasticsearchPlugins.analysis-smartcn: init at 7.17.16 (#343320)

authored by Arne Keller and committed by GitHub d3123588 b05a52c0

+36 -18
+36 -18
pkgs/servers/search/elasticsearch/plugins.nix
··· 41 41 if version == "7.17.16" then "sha256-wgm6N5fofs5wTM25ZT3dJkg7iDesXsc3Up419IAY9gk=" 42 42 else throw "unsupported version ${version} for plugin ${pluginName}"; 43 43 }; 44 - meta = with lib; { 44 + meta = { 45 45 homepage = "https://github.com/elastic/elasticsearch/tree/master/plugins/analysis-icu"; 46 46 description = "ICU Analysis plugin integrates the Lucene ICU module into elasticsearch"; 47 - license = licenses.asl20; 47 + license = lib.licenses.asl20; 48 48 }; 49 49 }; 50 50 ··· 57 57 if version == "7.17.16" then "sha256-SShdBcWfm21XoVhghSSiWIhsoXzG7wz6162iOmuf5EU=" 58 58 else throw "unsupported version ${version} for plugin ${pluginName}"; 59 59 }; 60 - meta = with lib; { 60 + meta = { 61 61 homepage = "https://github.com/elastic/elasticsearch/tree/master/plugins/analysis-kuromoji"; 62 62 description = "Japanese (kuromoji) Analysis plugin integrates Lucene kuromoji analysis module into Elasticsearch"; 63 - license = licenses.asl20; 63 + license = lib.licenses.asl20; 64 64 }; 65 65 }; 66 66 ··· 73 73 if version == "7.17.9" then "sha256-iY25apDkS6s0RoR9dVL2o/hFuUo6XhMzLjl8wDSFejk=" 74 74 else throw "unsupported version ${version} for plugin ${pluginName}"; 75 75 }; 76 - meta = with lib; { 76 + meta = { 77 77 homepage = "https://github.com/vhyza/elasticsearch-analysis-lemmagen"; 78 78 description = "LemmaGen Analysis plugin provides jLemmaGen lemmatizer as Elasticsearch token filter"; 79 - license = licenses.asl20; 79 + license = lib.licenses.asl20; 80 80 broken = true; # Not released yet for ES 7.17.10 81 81 }; 82 82 }; ··· 90 90 if version == "7.17.16" then "sha256-S/Cp9opeLitFh2/3Qw7/MFt6GcYKufxXKD6cJSi3SaQ=" 91 91 else throw "unsupported version ${version} for plugin ${pluginName}"; 92 92 }; 93 - meta = with lib; { 93 + meta = { 94 94 homepage = "https://github.com/elastic/elasticsearch/tree/master/plugins/analysis-phonetic"; 95 95 description = "Phonetic Analysis plugin integrates phonetic token filter analysis with elasticsearch"; 96 - license = licenses.asl20; 96 + license = lib.licenses.asl20; 97 + }; 98 + }; 99 + 100 + analysis-smartcn = esPlugin rec { 101 + pluginName = "analysis-smartcn"; 102 + version = esVersion; 103 + src = fetchurl { 104 + url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/${pluginName}/${pluginName}-${version}.zip"; 105 + hash = 106 + if version == "7.17.16" then 107 + "sha256-Ym2h7Qe+L4PFhcFjsSBSfXbYoG3PgfaVKXfkaPwvuFM=" 108 + else 109 + throw "unsupported version ${version} for plugin ${pluginName}"; 110 + }; 111 + meta = { 112 + homepage = "https://github.com/elastic/elasticsearch/tree/master/plugins/analysis-smartcn"; 113 + description = "Smart Chinese Analysis plugin integrates Lucene Smart Chinese analysis module into Elasticsearch"; 114 + license = lib.licenses.asl20; 97 115 }; 98 116 }; 99 117 ··· 106 124 if version == "7.17.16" then "sha256-hMErTLd5fXg420Olz+j6Zv7WByA1aNq9FlEgCtkYIxY=" 107 125 else throw "unsupported version ${version} for plugin ${pluginName}"; 108 126 }; 109 - meta = with lib; { 127 + meta = { 110 128 homepage = "https://github.com/elastic/elasticsearch/tree/master/plugins/discovery-ec2"; 111 129 description = "EC2 discovery plugin uses the AWS API for unicast discovery"; 112 - license = licenses.asl20; 130 + license = lib.licenses.asl20; 113 131 }; 114 132 }; 115 133 ··· 122 140 if version == "7.17.16" then "sha256-z0gfdx98urCzdQNlVn99CmteG6jweOmUDmGJW89twtU=" 123 141 else throw "unsupported version ${version} for plugin ${pluginName}"; 124 142 }; 125 - meta = with lib; { 143 + meta = { 126 144 homepage = "https://github.com/elastic/elasticsearch/tree/master/plugins/ingest-attachment"; 127 145 description = "Ingest processor that uses Apache Tika to extract contents"; 128 - license = licenses.asl20; 146 + license = lib.licenses.asl20; 129 147 }; 130 148 }; 131 149 ··· 138 156 if version == "7.17.16" then "sha256-TWMN8jzFjzBVTUB+zn4tJr47VMXHC8U+014BvnArK8M=" 139 157 else throw "unsupported version ${version} for plugin ${pluginName}"; 140 158 }; 141 - meta = with lib; { 159 + meta = { 142 160 homepage = "https://github.com/elastic/elasticsearch/tree/master/plugins/repository-s3"; 143 161 description = "S3 repository plugin adds support for using AWS S3 as a repository for Snapshot/Restore"; 144 - license = licenses.asl20; 162 + license = lib.licenses.asl20; 145 163 }; 146 164 }; 147 165 ··· 154 172 if version == "7.17.16" then "sha256-hG5wy1Xw4T1NzI7pja3CejwJg002/n6YqM1/QaVSWbg=" 155 173 else throw "unsupported version ${version} for plugin ${pluginName}"; 156 174 }; 157 - meta = with lib; { 175 + meta = { 158 176 homepage = "https://github.com/elastic/elasticsearch/tree/master/plugins/repository-gcs"; 159 177 description = "GCS repository plugin adds support for using Google Cloud Storage as a repository for Snapshot/Restore"; 160 - license = licenses.asl20; 178 + license = lib.licenses.asl20; 161 179 }; 162 180 }; 163 181 ··· 176 194 hash = "sha256-j8dz7rUKWqMvT6EksoFIuGJzYcgdMipKeg2d8UtzlDI="; 177 195 } 178 196 else throw "unsupported version ${version} for plugin ${pluginName}"; 179 - meta = with lib; { 197 + meta = { 180 198 homepage = "https://search-guard.com"; 181 199 description = "Elasticsearch plugin that offers encryption, authentication, and authorisation"; 182 - license = licenses.asl20; 200 + license = lib.licenses.asl20; 183 201 }; 184 202 }; 185 203 }