From b69410764fe7e3aa893112714204be3b7c9540ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edward=20Tj=C3=B6rnhammar?= Date: Thu, 16 Oct 2014 20:29:10 +0200 Subject: [PATCH] elasticsearchPlugins.elasticsearch_river_twitter: added package --- pkgs/servers/search/elasticsearch/plugins.nix | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/search/elasticsearch/plugins.nix b/pkgs/servers/search/elasticsearch/plugins.nix index ae93d1a4b5f7..6a0693ef1f50 100644 --- a/pkgs/servers/search/elasticsearch/plugins.nix +++ b/pkgs/servers/search/elasticsearch/plugins.nix @@ -4,11 +4,11 @@ with pkgs.lib; let esPlugin = a@{ - pluginName, + pluginName, installPhase ? '' mkdir -p $out/bin ES_HOME=$out ${elasticsearch}/bin/elasticsearch-plugin --install ${pluginName} --url file://$src - '', + '', ... }: stdenv.mkDerivation (a // { @@ -70,4 +70,25 @@ in { platforms = elasticsearch.meta.platforms; }; }; + + elasticsearch_river_twitter = esPlugin rec { + name = pname + "-" + version; + pname = "elasticsearch-river-twitter"; + pluginName = "elasticsearch/" + pname + "/" + version; + version = "2.3.0"; + + src = fetchurl { + url = "http://download.elasticsearch.org/elasticsearch/${pname}/${name}.zip"; + sha256 = "1lxxh1r61r15mzqyl0li37kcnn3vvpklnbfyys0kd6a1l82f0qvj"; + }; + + meta = { + homepage = "https://github.com/elasticsearch/elasticsearch-river-twitter"; + description = "Twitter River Plugin for ElasticSearch"; + license = licenses.asl20; + maintainers = [ maintainers.edwtjo ]; + platforms = elasticsearch.meta.platforms; + }; + + }; }