From 430200b60e780c738c2f72cdc24ea541ae2733d7 Mon Sep 17 00:00:00 2001 From: aviac Date: Wed, 19 Nov 2025 18:01:00 +0100 Subject: [PATCH] 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 --- nix/packages/uwulib/build.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix/packages/uwulib/build.nix b/nix/packages/uwulib/build.nix index 7d72b0b4..7bf4116d 100644 --- a/nix/packages/uwulib/build.nix +++ b/nix/packages/uwulib/build.nix @@ -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;