@@ -1,30 +1,31 @@
11{ lib, fetchFromGitHub, elk7Version, buildGoPackage, libpcap, nixosTests, systemd }:
22
3−let beat = package : extraArgs : buildGoPackage (rec {
4− name = "${package}-${version}";
5− version = elk7Version;
3+let beat = package: extraArgs: buildGoPackage (rec {
4+ name = "${package}-${version}";
5+ version = elk7Version;
66
7− src = fetchFromGitHub {
8− owner = "elastic";
9− repo = "beats";
10− rev = "v${version}";
11− sha256 = "192ygz3ppfah8d2b811x67jfqhcr5ivz7qh4vwrd729rjfr0bbgb";
12− };
7+ src = fetchFromGitHub {
8+ owner = "elastic";
9+ repo = "beats";
10+ rev = "v${version}";
11+ sha256 = "192ygz3ppfah8d2b811x67jfqhcr5ivz7qh4vwrd729rjfr0bbgb";
12+ };
1313
14− goPackagePath = "github.com/elastic/beats";
14+ goPackagePath = "github.com/elastic/beats";
1515
16− subPackages = [ package ];
16+ subPackages = [ package ];
1717
18− meta = with lib; {
19− homepage = "https://www.elastic.co/products/beats";
20− license = licenses.asl20;
21− maintainers = with maintainers; [ fadenb basvandijk ];
22− platforms = platforms.linux;
23− };
24− } // extraArgs);
25−in rec {
26− filebeat7 = beat "filebeat" {meta.description = "Lightweight shipper for logfiles";};
27− heartbeat7 = beat "heartbeat" {meta.description = "Lightweight shipper for uptime monitoring";};
18+ meta = with lib; {
19+ homepage = "https://www.elastic.co/products/beats";
20+ license = licenses.asl20;
21+ maintainers = with maintainers; [ fadenb basvandijk ];
22+ platforms = platforms.linux;
23+ };
24+} // extraArgs);
25+in
26+rec {
27+ filebeat7 = beat "filebeat" { meta.description = "Lightweight shipper for logfiles"; };
28+ heartbeat7 = beat "heartbeat" { meta.description = "Lightweight shipper for uptime monitoring"; };
2829 metricbeat7 = beat "metricbeat" {
2930 meta.description = "Lightweight shipper for metrics";
3031 passthru.tests =
@@ -46,14 +47,15 @@ in rec {
4647 PostgreSQL, Redis or Thrift and correlate the messages into transactions.
4748 '';
4849 };
49− journalbeat7 = beat "journalbeat" {
50+ journalbeat7 = beat "journalbeat" {
5051 meta.description = ''
5152 Journalbeat is an open source data collector to read and forward
5253 journal entries from Linuxes with systemd.
5354 '';
5455 buildInputs = [ systemd.dev ];
55− postFixup = let libPath = lib.makeLibraryPath [ (lib.getLib systemd) ]; in ''
56− patchelf --set-rpath ${libPath} "$out/bin/journalbeat"
57− '';
56+ postFixup = let libPath = lib.makeLibraryPath [ (lib.getLib systemd) ]; in
57+ ''
58+ patchelf --set-rpath ${libPath} "$out/bin/journalbeat"
59+ '';
5860 };
5961}