elasticsearch: Add zlib to buildInputs for unfree

The unfree variant of elasticsearch uses autoPatchelfHook and since we
removed the dependency on file for the hook itself in
58a97dfb49 we no longer have zlib
propagated.

So we need to explicitly state that dependency here.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @apeschar, @basvandijk
This commit is contained in:
aszlig 2018-09-25 05:00:44 +02:00
parent b4526040a2
commit 8df68a93e6
No known key found for this signature in database
GPG key ID: 684089CE67EBB691

View file

@ -29,7 +29,8 @@ stdenv.mkDerivation (rec {
sed -i "s|ES_CLASSPATH=\"\$ES_HOME/lib/\*\"|ES_CLASSPATH=\"$out/lib/*\"|" ./bin/elasticsearch-env
'';
buildInputs = [ makeWrapper jre_headless utillinux ];
buildInputs = [ makeWrapper jre_headless utillinux ]
++ optional enableUnfree zlib;
installPhase = ''
mkdir -p $out