navit: fix plugins

This commit is contained in:
Bignaux Ronan 2018-08-27 23:26:06 +02:00
parent b4a5b3efab
commit 30ab2300bc

View file

@ -68,10 +68,10 @@ stdenv.mkDerivation rec {
'';
# TODO: fix upstream?
libPath = stdenv.lib.makeLibraryPath ([ stdenv.cc.libc ] ++ buildInputs );
postFixup = ''
for lib in $(find "$out/lib/navit/" -iname "*.so" ); do
patchelf --set-rpath ${makeLibraryPath buildInputs} $lib
done
find "$out/lib" -type f -name "*.so" -exec patchelf --set-rpath $libPath {} \;
wrapProgram $out/bin/navit \
--prefix PATH : ${makeBinPath (
optional xkbdSupport xkbd