journalbeat6: fix binary by setting RPATH to systemd using patchelf

This commit is contained in:
Bas van Dijk 2019-05-10 15:29:35 +02:00
parent 6f0a6bfc60
commit 42f357d1ac

View file

@ -45,5 +45,8 @@ in {
journal entries from Linuxes with systemd.
'';
buildInputs = [ systemd.dev ];
postFixup = let libPath = stdenv.lib.makeLibraryPath [ systemd.lib ]; in ''
patchelf --set-rpath ${libPath} "$bin/bin/journalbeat"
'';
};
}