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
commit 45b32bff65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
''; '';