journalbeat7: fix binary by setting RPATH to systemd using patchelf

This commit is contained in:
Bas van Dijk 2019-05-10 15:36:53 +02:00
parent 42f357d1ac
commit 42c9c6df73

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