mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
elasticsearch: fix darwin build
This commit is contained in:
parent
1d109fc211
commit
2cc11dd21a
1 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,7 @@
|
|||
{ stdenv, fetchurl, makeWrapper, jre, utillinux }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "elasticsearch-1.2.1";
|
||||
|
||||
|
@ -9,7 +12,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
patches = [ ./es-home.patch ];
|
||||
|
||||
buildInputs = [ makeWrapper jre utillinux ];
|
||||
buildInputs = [ makeWrapper jre ] ++ optional (!stdenv.isDarwin) utillinux;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
|
@ -21,7 +24,7 @@ stdenv.mkDerivation rec {
|
|||
# set ES_CLASSPATH and JAVA_HOME
|
||||
wrapProgram $out/bin/elasticsearch \
|
||||
--prefix ES_CLASSPATH : "$out/lib/${name}.jar":"$out/lib/*":"$out/lib/sigar/*" \
|
||||
--prefix PATH : "${utillinux}/bin/" \
|
||||
${optionalString (!stdenv.isDarwin) ''--prefix PATH : "${utillinux}/bin/"''} \
|
||||
--set JAVA_HOME "${jre}"
|
||||
wrapProgram $out/bin/elasticsearch-plugin \
|
||||
--prefix ES_CLASSPATH : "$out/lib/${name}.jar":"$out/lib/*":"$out/lib/sigar/*" --set JAVA_HOME "${jre}"
|
||||
|
|
Loading…
Reference in a new issue