grafana-agent: fix rpath

The library is in the `lib` output, not `dev` output.
This commit is contained in:
Florian Klink 2021-01-22 13:17:13 +01:00
parent ad87ca737d
commit 28f04afdcc

View File

@ -27,7 +27,7 @@ buildGoModule rec {
# Add to RUNPATH so it can be found. # Add to RUNPATH so it can be found.
postFixup = '' postFixup = ''
patchelf \ 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 $out/bin/agent
''; '';