sniff the major version
This commit is contained in:
parent
811cf7c620
commit
12f03404d2
|
@ -77,7 +77,7 @@ stdenv.mkDerivation rec {
|
||||||
mkdir -p $tools/bin
|
mkdir -p $tools/bin
|
||||||
cp tools/{ldb,sst_dump}${stdenv.hostPlatform.extensions.executable} $tools/bin/
|
cp tools/{ldb,sst_dump}${stdenv.hostPlatform.extensions.executable} $tools/bin/
|
||||||
'' + lib.optionalString stdenv.isDarwin ''
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
ls -1 $tools/bin/* | xargs -I{} install_name_tool -change "@rpath/librocksdb.8.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) ''
|
'' + lib.optionalString (stdenv.isLinux && enableShared) ''
|
||||||
ls -1 $tools/bin/* | xargs -I{} patchelf --set-rpath $out/lib:${stdenv.cc.cc.lib}/lib {}
|
ls -1 $tools/bin/* | xargs -I{} patchelf --set-rpath $out/lib:${stdenv.cc.cc.lib}/lib {}
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue