auditbeat7,filebeat7,heartbeat7,metricbeat7,packetbeat7: fix meta merging

With a set merge, most of the meta was lost, including the license and
platform information. Change to deep merge to preserve the attributes.
This commit is contained in:
Stanisław Pitucha 2024-06-06 21:46:38 +10:00
parent 4f0a1d2245
commit 4ba83903ac

View File

@ -1,6 +1,6 @@
{ lib, fetchFromGitHub, elk7Version, buildGoModule, libpcap, nixosTests, systemd, config }:
let beat = package: extraArgs: buildGoModule (rec {
let beat = package: extraArgs: buildGoModule (lib.attrsets.recursiveUpdate (rec {
pname = package;
version = elk7Version;
@ -21,7 +21,7 @@ let beat = package: extraArgs: buildGoModule (rec {
maintainers = with maintainers; [ fadenb basvandijk dfithian ];
platforms = platforms.linux;
};
} // extraArgs);
}) extraArgs);
in
rec {
auditbeat7 = beat "auditbeat" { meta.description = "Lightweight shipper for audit data"; };