lucenepp: fix darwin build (#376776)
[NixPkgs.git] / pkgs / tools / misc / graylog / plugins.nix
blob3f5229549c8d2b0d733192ed2d70a9c94fdcf409
1 { lib, stdenv, fetchurl, unzip, graylog-5_1 }:
3 let
4   inherit (lib)
5     licenses
6     maintainers
7     platforms
8     sourceTypes
9     ;
11   glPlugin = a@{
12     pluginName,
13     version,
14     installPhase ? ''
15       mkdir -p $out/bin
16       cp $src $out/bin/${pluginName}-${version}.jar
17     '',
18     ...
19   }:
20     stdenv.mkDerivation (a // {
21       inherit installPhase;
22       dontUnpack = true;
23       nativeBuildInputs = [ unzip ];
24       meta = a.meta // {
25         platforms = graylog-5_1.meta.platforms;
26         maintainers = (a.meta.maintainers or []) ++ [ maintainers.fadenb ];
27         sourceProvenance = with sourceTypes; [ binaryBytecode ];
28       };
29     });
30 in {
31   aggregates = glPlugin rec {
32     name = "graylog-aggregates-${version}";
33     pluginName = "graylog-plugin-aggregates";
34     version = "2.4.0";
35     src = fetchurl {
36       url = "https://github.com/cvtienhoven/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
37       sha256 = "1c48almnjr0b6nvzagnb9yddqbcjs7yhrd5yc5fx9q7w3vxi50zp";
38     };
39     meta = {
40       homepage = "https://github.com/cvtienhoven/graylog-plugin-aggregates";
41       description = "Plugin that enables users to execute term searches and get notified when the given criteria are met";
42     };
43   };
44   auth_sso = glPlugin rec {
45     name = "graylog-auth-sso-${version}";
46     pluginName = "graylog-plugin-auth-sso";
47     version = "3.3.0";
48     src = fetchurl {
49       url = "https://github.com/Graylog2/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
50       sha256 = "1g47hlld8vzicd47b5i9n2816rbrhv18vjq8gp765c7mdg4a2jn8";
51     };
52     meta = {
53       homepage = "https://github.com/Graylog2/graylog-plugin-auth-sso";
54       description = "SSO support for Graylog through trusted HTTP headers set by load balancers or authentication proxies";
55     };
56   };
57   dnsresolver = glPlugin rec {
58     name = "graylog-dnsresolver-${version}";
59     pluginName = "graylog-plugin-dnsresolver";
60     version = "1.2.0";
61     src = fetchurl {
62       url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
63       sha256 = "0djlyd4w4mrrqfbrs20j1xw0fygqsb81snz437v9bf80avmcyzg1";
64     };
65     meta = {
66       homepage = "https://github.com/graylog-labs/graylog-plugin-dnsresolver";
67       description = "Message filter plugin can be used to do DNS lookups for the source field in Graylog messages";
68     };
69   };
70   enterprise-integrations = glPlugin rec {
71     name = "graylog-enterprise-integrations-${version}";
72     pluginName = "graylog-plugin-enterprise-integrations";
73     version = "3.3.9";
74     src = fetchurl {
75       url = "https://downloads.graylog.org/releases/graylog-enterprise-integrations/graylog-enterprise-integrations-plugins-${version}.tgz";
76       sha256 = "0yr2lmf50w8qw5amimmym6y4jxga4d7s7cbiqs5sqzvipgsknbwj";
77     };
78     installPhase = ''
79       mkdir -p $out/bin
80       tar --strip-components=2 -xf $src
81       cp ${pluginName}-${version}.jar $out/bin/${pluginName}-${version}.jar
82     '';
83     meta = {
84       homepage = "https://docs.graylog.org/en/3.3/pages/integrations.html#enterprise";
85       description = "Integrations are tools that help Graylog work with external systems (unfree enterprise integrations)";
86       license = licenses.unfree;
87     };
88   };
89   filter-messagesize = glPlugin rec {
90     name = "graylog-filter-messagesize-${version}";
91     pluginName = "graylog-plugin-filter-messagesize";
92     version = "0.0.2";
93     src = fetchurl {
94       url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
95       sha256 = "1vx62yikd6d3lbwsfiyf9j6kx8drvn4xhffwv27fw5jzhfqr61ji";
96     };
97     meta = {
98       homepage = "https://github.com/graylog-labs/graylog-plugin-filter-messagesize";
99       description = "Prints out all messages that have an estimated size crossing a configured threshold during processing";
100     };
101   };
102   integrations = glPlugin rec {
103     name = "graylog-integrations-${version}";
104     pluginName = "graylog-plugin-integrations";
105     version = "3.3.9";
106     src = fetchurl {
107       url = "https://downloads.graylog.org/releases/graylog-integrations/graylog-integrations-plugins-${version}.tgz";
108       sha256 = "0q858ffmkinngyqqsaszcrx93zc4fg43ny0xb7vm0p4wd48hjyqc";
109     };
110     installPhase = ''
111       mkdir -p $out/bin
112       tar --strip-components=2 -xf $src
113       cp ${pluginName}-${version}.jar $out/bin/${pluginName}-${version}.jar
114     '';
115     meta = {
116       homepage = "https://github.com/Graylog2/graylog-plugin-integrations";
117       description = "Collection of open source Graylog integrations that will be released together";
118     };
119   };
120   internal-logs = glPlugin rec {
121     name = "graylog-internal-logs-${version}";
122     pluginName = "graylog-plugin-internal-logs";
123     version = "2.4.0";
124     src = fetchurl {
125       url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
126       sha256 = "1jyy0wkjapv3xv5q957xxv2pcnd4n1yivkvkvg6cx7kv1ip75xwc";
127     };
128     meta = {
129       homepage = "https://github.com/graylog-labs/graylog-plugin-internal-logs";
130       description = "Graylog plugin to record internal logs of Graylog efficiently instead of sending them over the network";
131     };
132   };
133   ipanonymizer = glPlugin rec {
134     name = "graylog-ipanonymizer-${version}";
135     pluginName = "graylog-plugin-ipanonymizer";
136     version = "1.1.2";
137     src = fetchurl {
138       url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
139       sha256 = "0hd66751hp97ddkn29s1cmjmc2h1nrp431bq7d2wq16iyxxlygri";
140     };
141     meta = {
142       homepage = "https://github.com/graylog-labs/graylog-plugin-ipanonymizer";
143       description = "Graylog-server plugin that replaces the last octet of IP addresses in messages with xxx";
144     };
145   };
146   jabber = glPlugin rec {
147     name = "graylog-jabber-${version}";
148     pluginName = "graylog-plugin-jabber";
149     version = "2.4.0";
150     src = fetchurl {
151       url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
152       sha256 = "0zy27q8y0bv7i5nypsfxad4yiw121sbwzd194jsz2w08jhk3skl5";
153     };
154     meta = {
155       homepage = "https://github.com/graylog-labs/graylog-plugin-jabber";
156       description = "Jabber Alarmcallback Plugin for Graylog";
157     };
158   };
159   metrics = glPlugin rec {
160     name = "graylog-metrics-${version}";
161     pluginName = "graylog-plugin-metrics";
162     version = "1.3.0";
163     src = fetchurl {
164       url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
165       sha256 = "1v1yzmqp43kxigh3fymdwki7pn21sk2ym3kk4nn4qv4zzkhz59vp";
166     };
167     meta = {
168       homepage = "https://github.com/graylog-labs/graylog-plugin-metrics";
169       description = "Output plugin for integrating Graphite, Ganglia and StatsD with Graylog";
170     };
171   };
172   mongodb-profiler = glPlugin rec {
173     name = "graylog-mongodb-profiler-${version}";
174     pluginName = "graylog-plugin-mongodb-profiler";
175     version = "2.0.1";
176     src = fetchurl {
177       url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
178       sha256 = "1hadxyawdz234lal3dq5cy3zppl7ixxviw96iallyav83xyi23i8";
179     };
180     meta = {
181       homepage = "https://github.com/graylog-labs/graylog-plugin-mongodb-profiler";
182       description = "Graylog input plugin that reads MongoDB profiler data";
183     };
184   };
185   pagerduty = glPlugin rec {
186     name = "graylog-pagerduty-${version}";
187     pluginName = "graylog-plugin-pagerduty";
188     version = "2.0.0";
189     src = fetchurl {
190       url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
191       sha256 = "0xhcwfwn7c77giwjilv7k7aijnj9azrjbjgd0r3p6wdrw970f27r";
192     };
193     meta = {
194       homepage = "https://github.com/graylog-labs/graylog-plugin-pagerduty";
195       description = "Alarm callback plugin for integrating PagerDuty into Graylog";
196     };
197   };
198   redis = glPlugin rec {
199     name = "graylog-redis-${version}";
200     pluginName = "graylog-plugin-redis";
201     version = "0.1.1";
202     src = fetchurl {
203       url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
204       sha256 = "0dfgh6w293ssagas5y0ixwn0vf54i5iv61r5p2q0rbv2da6xvhbw";
205     };
206     meta = {
207       homepage = "https://github.com/graylog-labs/graylog-plugin-redis";
208       description = "Redis plugin for Graylog";
209     };
210   };
211   slack = glPlugin rec {
212     name = "graylog-slack-${version}";
213     pluginName = "graylog-plugin-slack";
214     version = "3.1.0";
215     src = fetchurl {
216       url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
217       sha256 = "067p8g94b007gypwyyi8vb6qhwdanpk8ah57abik54vv14jxg94k";
218     };
219     meta = {
220       homepage = "https://github.com/graylog-labs/graylog-plugin-slack";
221       description = "Can notify Slack or Mattermost channels about triggered alerts in Graylog (Alarm Callback)";
222     };
223   };
224   smseagle = glPlugin rec {
225     name = "graylog-smseagle-${version}";
226     pluginName = "graylog-plugin-smseagle";
227     version = "1.0.1";
228     src = fetchurl {
229       url = "https://bitbucket.org/proximus/smseagle-graylog/raw/b99cfc349aafc7c94d4c2503f7c3c0bde67684d1/jar/graylog-plugin-smseagle-1.0.1.jar";
230       sha256 = "sha256-rvvftzPskXRGs1Z9dvd/wFbQoIoNtEQIFxMIpSuuvf0=";
231     };
232     meta = {
233       homepage = "https://bitbucket.org/proximus/smseagle-graylog/";
234       description = "Alert/notification callback plugin for integrating the SMSEagle into Graylog";
235       license = licenses.gpl3Only;
236     };
237   };
238   snmp = glPlugin rec {
239     name = "graylog-snmp-${version}";
240     pluginName = "graylog-plugin-snmp";
241     version = "0.3.0";
242     src = fetchurl {
243       url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
244       sha256 = "1hkaklwzcsvqq45b98chwqxqdgnnbj4dg68agsll13yq4zx37qpp";
245     };
246     meta = {
247       homepage = "https://github.com/graylog-labs/graylog-plugin-snmp";
248       description = "Graylog plugin to receive SNMP traps";
249     };
250   };
251   spaceweather = glPlugin rec {
252     name = "graylog-spaceweather-${version}";
253     pluginName = "graylog-plugin-spaceweather";
254     version = "1.0";
255     src = fetchurl {
256       url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/spaceweather-input.jar";
257       sha256 = "1mwqy3fhyy4zdwyrzvbr565xwf96xs9d3l70l0khmrm848xf8wz4";
258     };
259     meta = {
260       homepage = "https://github.com/graylog-labs/graylog-plugin-spaceweather";
261       description = "Correlate proton density to the response time of your app and the ion temperature to your exception rate";
262     };
263   };
264   splunk = glPlugin rec {
265     name = "graylog-splunk-${version}";
266     pluginName = "graylog-plugin-splunk";
267     version = "0.5.0-rc.1";
268     src = fetchurl {
269       url = "https://github.com/graylog-labs/graylog-plugin-splunk/releases/download/0.5.0-rc.1/graylog-plugin-splunk-0.5.0-rc.1.jar";
270       sha256 = "sha256-EwF/Dc8GmMJBTxH9xGZizUIMTGSPedT4bprorN6X9Os=";
271     };
272     meta = {
273       homepage = "https://github.com/graylog-labs/graylog-plugin-splunk";
274       description = "Graylog output plugin that forwards one or more streams of data to Splunk via TCP";
275       license = licenses.gpl3Only;
276     };
277   };
278   twiliosms = glPlugin rec {
279     name = "graylog-twiliosms-${version}";
280     pluginName = "graylog-plugin-twiliosms";
281     version = "1.0.0";
282     src = fetchurl {
283       url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
284       sha256 = "0kwfv1zfj0fmxh9i6413bcsaxrn1vdwrzb6dphvg3dx27wxn1j1a";
285     };
286     meta = {
287       homepage = "https://github.com/graylog-labs/graylog-plugin-twiliosms";
288       description = "Alarm callback plugin for integrating the Twilio SMS API into Graylog";
289     };
290   };
291   twitter = glPlugin rec {
292     name = "graylog-twitter-${version}";
293     pluginName = "graylog-plugin-twitter";
294     version = "2.0.0";
295     src = fetchurl {
296       url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
297       sha256 = "1pi34swy9nzq35a823zzvqrjhb6wsg302z31vk2y656sw6ljjxyh";
298     };
299     meta = {
300       homepage = "https://github.com/graylog-labs/graylog-plugin-twitter";
301       description = "Graylog input plugin that reads Twitter messages based on keywords in realtime";
302     };
303   };