logstash: wrap around logstash-plugin

fixes #19096
This commit is contained in:
Jörg Thalheim 2016-10-02 09:31:59 +02:00
parent 63393b2d4e
commit 53e6c610e9
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA

View File

@ -21,13 +21,15 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out
cp -r {Gemfile*,vendor,lib,bin} $out
mv $out/bin/plugin $out/bin/logstash-plugin
wrapProgram $out/bin/logstash \
--set JAVA_HOME "${jre}"
wrapProgram $out/bin/rspec \
--set JAVA_HOME "${jre}"
wrapProgram $out/bin/logstash-plugin \
--set JAVA_HOME "${jre}"
'';
meta = with stdenv.lib; {