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

View file

@ -97,6 +97,9 @@ rec {
craneLib.buildPackage (
(commonAttrs commonAttrsArgs)
// {
postFixup = ''
patchelf --set-rpath "$(${pkgs.patchelf}/bin/patchelf --print-rpath $out/bin/${crateInfo.pname}):${rocksdb}/lib" $out/bin/${crateInfo.pname}
'';
cargoArtifacts = deps;
doCheck = true;
env = uwuenv.buildPackageEnv // rocksdbEnv;