leveldb: fix rpath setting on Darwin

This commit is contained in:
Roman Plášil 2019-11-11 23:20:44 +08:00 committed by Profpatsch
parent fb285f2153
commit f47e6ff4ed

View File

@ -16,8 +16,8 @@ stdenv.mkDerivation rec {
'';
installPhase = (stdenv.lib.optionalString stdenv.isDarwin ''
for file in out-shared/*.dylib*; do
install_name_tool -id $out/lib/$file $file
for file in out-shared/*.dylib.*.*; do
install_name_tool -id $out/lib/$(basename $file) $file
done
'') + # XXX consider removing above after transition to cmake in the next release
"