3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #4556 from edwtjo/elastic-river-twitter

elasticsearchPlugins.elasticsearch_river_twitter: added package
This commit is contained in:
Edward Tjörnhammar 2014-11-02 21:38:12 +01:00
commit 942085daab

View file

@ -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;
};
};
}