| 12 Nov 2025 |
| Inayet changed their display name from inayet to Inayet. | 12:37:29 |
crop | i am trying to use this crate in a project that i work on on a nixos machine: https://github.com/HadrienG2/hwlocality it depends on a c library that i add to the shell.nix in the buildInputs = with pkgs; [hwloc] and then set the libpath with libPath = with pkgs; lib.makeLibraryPath buildInputs; ... the library is loaded dynamically as the error appears only when i try to use the crate in rust. the error is target/release/multi_thread: error while loading shared libraries: libhwloc.so.15: cannot open shared object file: No such file or directory any suggestions how to fix this? | 22:59:37 |
crop | i now added the following line to the shell.nix
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath buildInputs}"; but i thought this is not recommended. | 23:25:43 |
crop | its not "recommended" because now i am missing other libraries (pipewire-...-jack-lib) ... and i don't know how it got put into the LDLIBRARYPATH variable automatically | 23:33:14 |