summaryrefslogtreecommitdiffstats
path: root/pkgs/misc/logging
diff options
context:
space:
mode:
authorhappysalada <raphael@megzari.com>2021-08-30 12:36:15 +0900
committerRaphael Megzari <raphael@megzari.com>2021-08-31 09:06:13 +0900
commit8b2cecc3ce33053da4a4aab33991839f9a7a1a54 (patch)
tree00c0533785b9a7c3c1832abcc9881bb81cfa51df /pkgs/misc/logging
parent9a3c58ee74ad3d89cd848f10d787c753a92f70bd (diff)
beats: nixpkgs-fmt
Diffstat (limited to 'pkgs/misc/logging')
-rw-r--r--pkgs/misc/logging/beats/7.x.nix52
1 files changed, 27 insertions, 25 deletions
diff --git a/pkgs/misc/logging/beats/7.x.nix b/pkgs/misc/logging/beats/7.x.nix
index 77e14e96c54e..bf252c028bcb 100644
--- a/pkgs/misc/logging/beats/7.x.nix
+++ b/pkgs/misc/logging/beats/7.x.nix
@@ -1,30 +1,31 @@
{ lib, fetchFromGitHub, elk7Version, buildGoPackage, libpcap, nixosTests, systemd }:
-let beat = package : extraArgs : buildGoPackage (rec {
- name = "${package}-${version}";
- version = elk7Version;
+let beat = package: extraArgs: buildGoPackage (rec {
+ name = "${package}-${version}";
+ version = elk7Version;
- src = fetchFromGitHub {
- owner = "elastic";
- repo = "beats";
- rev = "v${version}";
- sha256 = "192ygz3ppfah8d2b811x67jfqhcr5ivz7qh4vwrd729rjfr0bbgb";
- };
+ src = fetchFromGitHub {
+ owner = "elastic";
+ repo = "beats";
+ rev = "v${version}";
+ sha256 = "192ygz3ppfah8d2b811x67jfqhcr5ivz7qh4vwrd729rjfr0bbgb";
+ };
- goPackagePath = "github.com/elastic/beats";
+ goPackagePath = "github.com/elastic/beats";
- subPackages = [ package ];
+ subPackages = [ package ];
- meta = with lib; {
- homepage = "https://www.elastic.co/products/beats";
- license = licenses.asl20;
- maintainers = with maintainers; [ fadenb basvandijk ];
- platforms = platforms.linux;
- };
- } // extraArgs);
-in rec {
- filebeat7 = beat "filebeat" {meta.description = "Lightweight shipper for logfiles";};
- heartbeat7 = beat "heartbeat" {meta.description = "Lightweight shipper for uptime monitoring";};
+ meta = with lib; {
+ homepage = "https://www.elastic.co/products/beats";
+ license = licenses.asl20;
+ maintainers = with maintainers; [ fadenb basvandijk ];
+ platforms = platforms.linux;
+ };
+} // extraArgs);
+in
+rec {
+ filebeat7 = beat "filebeat" { meta.description = "Lightweight shipper for logfiles"; };
+ heartbeat7 = beat "heartbeat" { meta.description = "Lightweight shipper for uptime monitoring"; };
metricbeat7 = beat "metricbeat" {
meta.description = "Lightweight shipper for metrics";
passthru.tests =
@@ -46,14 +47,15 @@ in rec {
PostgreSQL, Redis or Thrift and correlate the messages into transactions.
'';
};
- journalbeat7 = beat "journalbeat" {
+ journalbeat7 = beat "journalbeat" {
meta.description = ''
Journalbeat is an open source data collector to read and forward
journal entries from Linuxes with systemd.
'';
buildInputs = [ systemd.dev ];
- postFixup = let libPath = lib.makeLibraryPath [ (lib.getLib systemd) ]; in ''
- patchelf --set-rpath ${libPath} "$out/bin/journalbeat"
- '';
+ postFixup = let libPath = lib.makeLibraryPath [ (lib.getLib systemd) ]; in
+ ''
+ patchelf --set-rpath ${libPath} "$out/bin/journalbeat"
+ '';
};
}