From 28f04afdcca7f2e23dbdb6a8471c268b4f0bb132 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 22 Jan 2021 13:17:13 +0100 Subject: [PATCH] grafana-agent: fix rpath The library is in the `lib` output, not `dev` output. --- pkgs/servers/monitoring/grafana-agent/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/monitoring/grafana-agent/default.nix b/pkgs/servers/monitoring/grafana-agent/default.nix index 719733330639..e83532bb6f1d 100644 --- a/pkgs/servers/monitoring/grafana-agent/default.nix +++ b/pkgs/servers/monitoring/grafana-agent/default.nix @@ -27,7 +27,7 @@ buildGoModule rec { # Add to RUNPATH so it can be found. postFixup = '' patchelf \ - --set-rpath "${lib.makeLibraryPath [ (lib.getDev systemd) ]}:$(patchelf --print-rpath $out/bin/agent)" \ + --set-rpath "${lib.makeLibraryPath [ (lib.getLib systemd) ]}:$(patchelf --print-rpath $out/bin/agent)" \ $out/bin/agent '';