| 11 Nov 2025 |
n8henrie | This way I can make sure the package builds or exit 125 for the bisect. If the package builds, run the nixosTest and get a result. Fingers crossed. | 22:34:37 |
| 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 |
crop | ok i found the solution for the jack problem but it actually doesn't help for hwloc to be found .... which is strange because one time i run the build (but i don't know what i changed it worked) | 23:46:20 |
crop | ok it seems to work if i use the "vendored" hwloc build by cargo ... not ideal (and only without the LDLIBRARYPATH thing which seems to be what i shouldn't do anyway) | 23:50:39 |
| 15 Nov 2025 |
| Louis2747 joined the room. | 11:31:57 |
K900 | I'm dumb, how do I patch a fetchCargoVendor | 14:03:33 |
@ghpzin:envs.net | I saw somebody do rustPlatform.fetchCargoVendor similar to what it does by default, then change it with runCommand and set cargoDeps attr to result. Not sure whether it is the most "accepted" way to do it. | 14:09:53 |
K900 | OK that's too much effort | 14:10:57 |
@ghpzin:envs.net | I saw somebody do rustPlatform.fetchCargoVendor similar to what it does by default, then change it with runCommand and set cargoDeps attr to result. Not sure whether it is the most "accepted" way to do it. https://github.com/NixOS/nixpkgs/blob/321f80c3e2a7ebefde46ef112e88e73774bc9fc7/pkgs/by-name/fl/flare-signal/package.nix#L49-L69 | 14:11:00 |
niklaskorz | there's depsExtraArgs | 14:24:47 |