fix: add explicit fix of rpath

Without this the rpath is empty and the binary won't be able to load the librocksdb.so.10 shared lib
This commit is contained in:
aviac
2025-11-19 18:01:00 +01:00
committed by nex
parent a573f1f502
commit 430200b60e
+3
View File
@@ -97,6 +97,9 @@ rec {
craneLib.buildPackage ( craneLib.buildPackage (
(commonAttrs commonAttrsArgs) (commonAttrs commonAttrsArgs)
// { // {
postFixup = ''
patchelf --set-rpath "$(${pkgs.patchelf}/bin/patchelf --print-rpath $out/bin/${crateInfo.pname}):${rocksdb}/lib" $out/bin/${crateInfo.pname}
'';
cargoArtifacts = deps; cargoArtifacts = deps;
doCheck = true; doCheck = true;
env = uwuenv.buildPackageEnv // rocksdbEnv; env = uwuenv.buildPackageEnv // rocksdbEnv;