Skip to content

Commit

Permalink
Merge pull request #248100 from yihuang/master-1
Browse files Browse the repository at this point in the history
fix rocksdb rpath on macos
  • Loading branch information
risicle authored Aug 10, 2023
2 parents 079f7bd + 12f0340 commit 1ae7d90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/libraries/rocksdb/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ stdenv.mkDerivation rec {
mkdir -p $tools/bin
cp tools/{ldb,sst_dump}${stdenv.hostPlatform.extensions.executable} $tools/bin/
'' + lib.optionalString stdenv.isDarwin ''
ls -1 $tools/bin/* | xargs -I{} install_name_tool -change "@rpath/librocksdb.7.dylib" $out/lib/librocksdb.dylib {}
ls -1 $tools/bin/* | xargs -I{} install_name_tool -change "@rpath/librocksdb.${lib.versions.major version}.dylib" $out/lib/librocksdb.dylib {}
'' + lib.optionalString (stdenv.isLinux && enableShared) ''
ls -1 $tools/bin/* | xargs -I{} patchelf --set-rpath $out/lib:${stdenv.cc.cc.lib}/lib {}
'';
Expand Down

0 comments on commit 1ae7d90

Please sign in to comment.