logstash: fix bin path

with the last commit for logstash plugin the bin path was not being used and the executables
were written directly in the root directory
this results in the failure of the logstash service configuration.
additionally the logstash tool itself does not start because it cannot source shell libraries relative
to the current location
This commit is contained in:
makefu 2015-12-04 14:21:58 +01:00
parent 2157dadebf
commit 1eb3239181

View File

@ -16,9 +16,8 @@ stdenv.mkDerivation rec {
installPhase = '' installPhase = ''
mkdir -p $out mkdir -p $out
cp -r {Gemfile*,vendor,lib} $out cp -r {Gemfile*,vendor,lib,bin} $out
cp bin/logstash $out/logstash mv $out/bin/plugin $out/bin/logstash-plugin
cp bin/plugin $out/logstash-plugin
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {