about summary refs log tree commit diff
path: root/pkgs/servers/search
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2017-09-28 04:16:32 +0200
committerRobin Gloster <mail@glob.in>2017-09-28 04:16:54 +0200
commitc57e5d1aa9a90e86d02812970670513839b14313 (patch)
tree8829e3cc30f10b828784857159e854d44cb005dc /pkgs/servers/search
parent35c15d4a61be8e9fb56410077c16dfb092e4ae1b (diff)
downloadnixlib-c57e5d1aa9a90e86d02812970670513839b14313.tar
nixlib-c57e5d1aa9a90e86d02812970670513839b14313.tar.gz
nixlib-c57e5d1aa9a90e86d02812970670513839b14313.tar.bz2
nixlib-c57e5d1aa9a90e86d02812970670513839b14313.tar.lz
nixlib-c57e5d1aa9a90e86d02812970670513839b14313.tar.xz
nixlib-c57e5d1aa9a90e86d02812970670513839b14313.tar.zst
nixlib-c57e5d1aa9a90e86d02812970670513839b14313.zip
elasticsearch: use jre_headless
Diffstat (limited to 'pkgs/servers/search')
-rw-r--r--pkgs/servers/search/elasticsearch/5.x.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/servers/search/elasticsearch/5.x.nix b/pkgs/servers/search/elasticsearch/5.x.nix
index cfa471f217ee..fb988b546308 100644
--- a/pkgs/servers/search/elasticsearch/5.x.nix
+++ b/pkgs/servers/search/elasticsearch/5.x.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, elk5Version, makeWrapper, jre, utillinux, getopt }:
+{ stdenv, fetchurl, elk5Version, makeWrapper, jre_headless, utillinux, getopt }:
 
 with stdenv.lib;
 
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
 
   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]);
 
   installPhase = ''
@@ -27,10 +27,10 @@ stdenv.mkDerivation rec {
       ${if (!stdenv.isDarwin)
         then ''--prefix PATH : "${utillinux}/bin/"''
         else ''--prefix PATH : "${getopt}/bin"''} \
-      --set JAVA_HOME "${jre}" \
+      --set JAVA_HOME "${jre_headless}" \
       --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 = {