12 let this = stdenv.mkDerivation rec {
13 version = elk6Version;
14 pname = "logstash${optionalString (!enableUnfree) "-oss"}";
17 url = "https://artifacts.elastic.co/downloads/logstash/${pname}-${version}.tar.gz";
20 then "0hij1byw5b3xmk3vshr9p7gxwbjrywr7ylps05ydc2dmnz8q2a79"
21 else "1fa236pvhj7spys54nqi3k64rwzf6zi6gaccmqg4p4sh92jzsybv";
27 dontPatchShebangs = true;
40 cp -r {Gemfile*,modules,vendor,lib,bin,config,data,logstash-core,logstash-core-plugin-api} $out
42 patchShebangs $out/bin/logstash
43 patchShebangs $out/bin/logstash-plugin
45 wrapProgram $out/bin/logstash \
46 --set JAVA_HOME "${jre}"
48 wrapProgram $out/bin/logstash-plugin \
49 --set JAVA_HOME "${jre}"
54 description = "A data pipeline that helps you process logs and other event data from a variety of systems";
55 homepage = "https://www.elastic.co/products/logstash";
56 sourceProvenance = with sourceTypes; [
58 binaryBytecode # source bundles dependencies as jars
59 binaryNativeCode # bundled jruby includes native code
61 license = if enableUnfree then licenses.elastic else licenses.asl20;
62 platforms = platforms.unix;
63 maintainers = with maintainers; [ wjlroe offline basvandijk ];
66 optionalAttrs (!enableUnfree) (
67 assert this.drvPath == nixosTests.elk.ELK-6.elkPackages.logstash.drvPath;
69 elk = nixosTests.elk.ELK-6;