grafana-agent: disable ebpf

at the moment the used go-epbf version not compatible with our bcc version.
This commit is contained in:
Jörg Thalheim 2022-12-04 16:07:09 +01:00
parent d54760e57f
commit 3e5b243639

View file

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, systemd, nixosTests, bcc }:
{ lib, buildGoModule, fetchFromGitHub, systemd, nixosTests }:
buildGoModule rec {
pname = "grafana-agent";
@ -27,6 +27,7 @@ buildGoModule rec {
tags = [
"nonetwork"
"noebpf"
"nodocker"
];
@ -39,8 +40,6 @@ buildGoModule rec {
# https://github.com/coreos/go-systemd/issues/351
NIX_CFLAGS_COMPILE = [ "-I${lib.getDev systemd}/include" ];
buildInputs = [ bcc ];
# tries to access /sys: https://github.com/grafana/agent/issues/333
preBuild = ''
rm pkg/integrations/node_exporter/node_exporter_test.go