nixpkgs/pkgs/servers/search/elasticsearch/plugins.nix

57 lines
1.8 KiB
Nix
Raw Normal View History

{ pkgs, stdenv, fetchurl, unzip, elasticsearch-oss, javaPackages, elk6Version }:
2014-07-05 10:09:53 +00:00
with pkgs.lib;
let
esPlugin = a@{
pluginName,
2014-07-05 10:09:53 +00:00
installPhase ? ''
mkdir -p $out/config
mkdir -p $out/plugins
ES_HOME=$out ${elasticsearch-oss}/bin/elasticsearch-plugin install --batch -v file://$src
'',
2014-07-05 10:09:53 +00:00
...
}:
stdenv.mkDerivation (a // {
inherit installPhase;
unpackPhase = "true";
buildInputs = [ unzip ];
meta = a.meta // {
platforms = elasticsearch-oss.meta.platforms;
2014-07-27 11:36:25 +00:00
maintainers = (a.meta.maintainers or []) ++ [ maintainers.offline ];
2014-07-05 10:09:53 +00:00
};
});
in {
elasticsearch_analysis_lemmagen = esPlugin rec {
2014-07-05 10:09:53 +00:00
name = "elasticsearch-analysis-lemmagen-${version}";
pluginName = "elasticsearch-analysis-lemmagen";
version = "${elk6Version}";
2014-07-05 10:09:53 +00:00
src = fetchurl {
url = "https://github.com/vhyza/elasticsearch-analysis-lemmagen/releases/download/v${version}/${name}-plugin.zip";
sha256 = "1m4z05wixjrq4nlbdjyhvprkrwxjym8aba18scmzfn25fhbjgvkz";
2014-07-05 10:09:53 +00:00
};
meta = {
homepage = https://github.com/vhyza/elasticsearch-analysis-lemmagen;
2014-07-05 10:09:53 +00:00
description = "LemmaGen Analysis plugin provides jLemmaGen lemmatizer as Elasticsearch token filter";
license = licenses.asl20;
};
};
2015-08-19 22:20:44 +00:00
search_guard = esPlugin rec {
name = "elastic-search-guard-${version}";
pluginName = "search-guard";
version = "${elk6Version}-22.3";
src = fetchurl rec {
url = "mirror://maven/com/floragunn/search-guard-6/${version}/search-guard-6-${version}.zip";
sha256 = "1r71h4h9bmxak1mq5gpm19xq5ji1gry1kp3sjmm8azy4ykdqdncx";
2015-08-19 22:20:44 +00:00
};
meta = {
homepage = https://github.com/floragunncom/search-guard;
description = "Plugin to fetch data from JDBC sources for indexing into Elasticsearch";
license = licenses.asl20;
};
};
2014-07-05 10:09:53 +00:00
}