forked from mirrors/nixpkgs
1eb3239181
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
31 lines
887 B
Nix
31 lines
887 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.5.3";
|
|
name = "logstash-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.elasticsearch.org/logstash/logstash/logstash-${version}.tar.gz";
|
|
sha256 = "1an476k4q2shdxvhcx4fzbrcpk6isjrrvzlb6ivxfqg5fih3cg7b";
|
|
};
|
|
|
|
dontBuild = true;
|
|
dontPatchELF = true;
|
|
dontStrip = true;
|
|
dontPatchShebangs = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -r {Gemfile*,vendor,lib,bin} $out
|
|
mv $out/bin/plugin $out/bin/logstash-plugin
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Logstash is a data pipeline that helps you process logs and other event data from a variety of systems.";
|
|
homepage = https://www.elastic.co/products/logstash;
|
|
license = licenses.asl20;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.wjlroe maintainers.offline ];
|
|
};
|
|
}
|