elasticsearch: use jre_headless
This commit is contained in:
parent
35c15d4a61
commit
c57e5d1aa9
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, elk5Version, makeWrapper, jre, utillinux, getopt }:
|
{ stdenv, fetchurl, elk5Version, makeWrapper, jre_headless, utillinux, getopt }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = [ ./es-home-5.x.patch ./es-classpath-5.x.patch ];
|
patches = [ ./es-home-5.x.patch ./es-classpath-5.x.patch ];
|
||||||
|
|
||||||
buildInputs = [ makeWrapper jre ] ++
|
buildInputs = [ makeWrapper jre_headless ] ++
|
||||||
(if (!stdenv.isDarwin) then [utillinux] else [getopt]);
|
(if (!stdenv.isDarwin) then [utillinux] else [getopt]);
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -27,10 +27,10 @@ stdenv.mkDerivation rec {
|
|||||||
${if (!stdenv.isDarwin)
|
${if (!stdenv.isDarwin)
|
||||||
then ''--prefix PATH : "${utillinux}/bin/"''
|
then ''--prefix PATH : "${utillinux}/bin/"''
|
||||||
else ''--prefix PATH : "${getopt}/bin"''} \
|
else ''--prefix PATH : "${getopt}/bin"''} \
|
||||||
--set JAVA_HOME "${jre}" \
|
--set JAVA_HOME "${jre_headless}" \
|
||||||
--set ES_JVM_OPTIONS "$out/config/jvm.options"
|
--set ES_JVM_OPTIONS "$out/config/jvm.options"
|
||||||
|
|
||||||
wrapProgram $out/bin/elasticsearch-plugin --set JAVA_HOME "${jre}"
|
wrapProgram $out/bin/elasticsearch-plugin --set JAVA_HOME "${jre_headless}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user