Merge pull request #110472 from flokli/grafana-agent-fix-rpath

grafana-agent: fix rpath
This commit is contained in:
Jonas Chevalier
2021-01-22 14:11:11 +00:00
committed by GitHub
@@ -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
''; '';