leveldb: fix install_name on darwin

This commit is contained in:
Dmitry Kalinkin 2018-04-05 13:58:07 -04:00
parent e120915248
commit c639649ef0
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

View File

@ -15,7 +15,12 @@ stdenv.mkDerivation rec {
make all leveldbutil libmemenv.a
'';
installPhase = "
installPhase = (stdenv.lib.optionalString stdenv.isDarwin ''
for file in *.dylib*; do
install_name_tool -id $out/lib/$file $file
done
'') + # XXX consider removing above after transition to cmake in the next release
"
mkdir -p $out/{bin,lib,include}
cp -r include $out