14 info = splitString "-" stdenv.hostPlatform.system;
20 x86_64-linux = "35e50e05fba0240aa5b138bc1c81f67addaf557701f8df41c682b5bc708f7455";
21 x86_64-darwin = "698b6000788e123b647c988993f710c6d9bc44eb8c8e6f97d6b18a695a61f0a6";
22 aarch64-linux = "69694856fde11836eb1613bf3a2ba31fbdc933f58c8527b6180f6122c8bb528b";
25 x86_64-linux = "3a2da2e63bc08ee1886db29c80103c669d3ed6960290b8b97d771232769f282e";
26 x86_64-darwin = "655ab873e16257827f884f67b66d62c4da40a895d06206faa435615ad0a56796";
27 aarch64-linux = "235cf57afb619801808d5fe1bff7e01a4a9b29f77723566e5371b5f3b2bf8fad";
29 this = stdenv.mkDerivation rec {
30 version = elk7Version;
31 pname = "logstash${optionalString (!enableUnfree) "-oss"}";
35 url = "https://artifacts.elastic.co/downloads/logstash/${pname}-${version}-${plat}-${arch}.tar.gz";
36 sha256 = shas.${stdenv.hostPlatform.system} or (throw "Unknown architecture");
42 dontPatchShebangs = true;
55 cp -r {Gemfile*,modules,vendor,lib,bin,config,data,logstash-core,logstash-core-plugin-api} $out
57 patchShebangs $out/bin/logstash
58 patchShebangs $out/bin/logstash-plugin
60 wrapProgram $out/bin/logstash \
61 --set JAVA_HOME "${jre}"
63 wrapProgram $out/bin/logstash-plugin \
64 --set JAVA_HOME "${jre}"
69 description = "Logstash is a data pipeline that helps you process logs and other event data from a variety of systems";
70 homepage = "https://www.elastic.co/products/logstash";
71 sourceProvenance = with sourceTypes; [
73 binaryBytecode # source bundles dependencies as jars
74 binaryNativeCode # bundled jruby includes native code
76 license = if enableUnfree then licenses.elastic else licenses.asl20;
77 platforms = platforms.unix;
78 maintainers = with maintainers; [ wjlroe offline basvandijk ];
81 optionalAttrs (!enableUnfree) (
82 assert this.drvPath == nixosTests.elk.ELK-7.elkPackages.logstash.drvPath;
84 elk = nixosTests.elk.ELK-7;