mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
navit: fix plugins
This commit is contained in:
parent
b4a5b3efab
commit
30ab2300bc
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue