nixpkgs/pkgs/tools/misc/logstash/default.nix

43 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, makeWrapper, jre }:
2014-07-11 17:50:02 +01:00
stdenv.mkDerivation rec {
2016-10-01 22:11:30 +01:00
version = "2.4.0";
2014-07-11 17:50:02 +01:00
name = "logstash-${version}";
2014-07-11 17:50:02 +01:00
src = fetchurl {
url = "https://download.elasticsearch.org/logstash/logstash/logstash-${version}.tar.gz";
2016-10-01 22:11:30 +01:00
sha256 = "1k27hb6q1r26rp3y9pb2ry92kicw83mi352dzl2y4h0gbif46b32";
2014-07-11 17:50:02 +01:00
};
2015-08-19 22:09:03 +01:00
dontBuild = true;
dontPatchELF = true;
dontStrip = true;
dontPatchShebangs = true;
buildInputs = [
makeWrapper jre
];
2016-10-01 22:11:30 +01:00
2014-07-11 17:50:02 +01:00
installPhase = ''
mkdir -p $out
cp -r {Gemfile*,vendor,lib,bin} $out
2016-10-01 22:11:30 +01:00
wrapProgram $out/bin/logstash \
--set JAVA_HOME "${jre}"
2016-10-01 22:11:30 +01:00
wrapProgram $out/bin/rspec \
--set JAVA_HOME "${jre}"
wrapProgram $out/bin/logstash-plugin \
--set JAVA_HOME "${jre}"
2014-07-11 17:50:02 +01:00
'';
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 ];
2014-07-11 17:50:02 +01:00
};
}