mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 07:31:20 +00:00
ea8e7ed1e3
Release notes: * https://www.elastic.co/guide/en/elasticsearch/reference/5.6/release-notes-5.6.1.html * https://www.elastic.co/guide/en/logstash/5.6/logstash-5-6-1.html * https://www.elastic.co/guide/en/kibana/current/release-notes-5.6.1.html
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ stdenv, fetchurl, elk5Version, makeWrapper, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = elk5Version;
|
|
name = "logstash-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://artifacts.elastic.co/downloads/logstash/${name}.tar.gz";
|
|
sha256 = "11qg8i0svsccr1wd0yj0ivfzpza2hd68221g38v88shvj0bb737f";
|
|
};
|
|
|
|
dontBuild = true;
|
|
dontPatchELF = true;
|
|
dontStrip = true;
|
|
dontPatchShebangs = true;
|
|
|
|
buildInputs = [
|
|
makeWrapper jre
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -r {Gemfile*,modules,vendor,lib,bin,config,data,logstash-core,logstash-core-plugin-api} $out
|
|
|
|
wrapProgram $out/bin/logstash \
|
|
--set JAVA_HOME "${jre}"
|
|
|
|
wrapProgram $out/bin/logstash-plugin \
|
|
--set JAVA_HOME "${jre}"
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|