elasticsearch/plugins: build with "modules" from elasticsearch

Fixes dependency error while building search-guard:

    Exception in thread "main" java.lang.IllegalArgumentException: Missing plugin [lang-painless], dependency of [search-guard-7]
This commit is contained in:
Andrew Childs 2021-03-22 14:44:43 +09:00 committed by Robert Hensing
parent 8fba8ef596
commit 1faa5d5915

View File

@ -4,13 +4,14 @@ let
esVersion = elasticsearch.version;
esPlugin =
a@{ pluginName
, installPhase ? ''
a@{
pluginName,
installPhase ? ''
mkdir -p $out/config
mkdir -p $out/plugins
ln -s ${elasticsearch}/lib $out/lib
ln -s ${elasticsearch}/lib ${elasticsearch}/modules $out
ES_HOME=$out ${elasticsearch}/bin/elasticsearch-plugin install --batch -v file://$src
rm $out/lib
rm $out/lib $out/modules
''
, ...
}: