opensearch: fix knn ml plugin

This commit is contained in:
Soner Sayakci 2023-02-28 21:47:34 +01:00
parent 929143c145
commit 5cfd70fd4d
No known key found for this signature in database

View File

@ -1,4 +1,5 @@
{ lib
, stdenv
, stdenvNoCC
, fetchurl
, makeWrapper
@ -35,6 +36,7 @@ stdenvNoCC.mkDerivation rec {
wrapProgram $out/bin/opensearch \
--prefix PATH : "${lib.makeBinPath [ util-linux gnugrep coreutils ]}" \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc.lib ]}:$out/plugins/opensearch-knn/lib/" \
--set JAVA_HOME "${jre_headless}"
wrapProgram $out/bin/opensearch-plugin --set JAVA_HOME "${jre_headless}"