| 12 Nov 2025 |
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 |
niklaskorz | https://github.com/NixOS/nixpkgs/blob/c5ae371f1a6a7fd27823bc500d9390b38c05fa55/pkgs/by-name/ze/zed-editor/package.nix#L131-L135 | 14:24:54 |
niklaskorz | but it's undocumented | 14:25:26 |
niklaskorz | but that doesn't do anything else than passing extraArgs to buildRustPackage's implicit fetchCargoVendor call, so probably not what you are looking for if you already use fetchCargoVendor directly | 14:26:57 |
niklaskorz | * but that doesn't do anything else than passing extra args to buildRustPackage's implicit fetchCargoVendor call, so probably not what you are looking for if you already use fetchCargoVendor directly | 14:27:06 |
niklaskorz | if you need to patch a dependency's own code then the common solution is to do that in your package's postPatch on $cargoDepsCopy | 14:28:20 |
K900 | Bleh | 14:28:54 |
@ghpzin:envs.net | fetchCargoVendor is just runCommand at the very end, so you can probably do the same on top of it. Or applyPatches on top. | 14:33:25 |
@ghpzin:envs.net | fetchCargoVendor is just runCommand at the very end, so you can probably do the same inside. Or applyPatches on top. | 14:33:40 |
| seapat joined the room. | 17:49:16 |
| 16 Nov 2025 |
| PixelHamster joined the room. | 10:48:36 |