| 16 Nov 2025 |
PixelHamster | I have a git package that depends on dpi-1.2.0 from git
and a crates.io package that depends on dpi-1.2.0 from crates.io
and cargo vendor does not like that | 11:23:22 |
@ghpzin:envs.net | One of the out of tree solutions may handle it fine. Afaik crane does not: https://github.com/ipetkov/crane/blob/0cea393fffb39575c46b7a0318386467272182fe/docs/API.md?plain=1#L1063 Maybe crate2nix, naersk or something else can. Otherwise you could try patching your nixpkgs with rebased patch from that PR, but that may have unintended problems. | 11:55:22 |
@ghpzin:envs.net | One of the out of tree solutions may handle it fine. Afaik crane does not: https://github.com/ipetkov/crane/blob/0cea393fffb39575c46b7a0318386467272182fe/docs/API.md?plain=1#L1063 Maybe crate2nix, naersk or something else can. Otherwise you could try patching your nixpkgs with rebased patch from that PR, but that may have unintended problems (other than implicit rebuild of everything from nixpkgs that depends on rust). | 11:57:57 |
niklaskorz | Patching the lockfile to make sure it only uses one version of dpi is also an option | 14:14:58 |
PixelHamster | cargo generates the lock file, that's not a maintainable solution | 16:04:27 |
PixelHamster | I've tried naersk but it sadly couldn't fetch the correct repository, I made an issue on their bug tracker for it | 16:05:15 |
| 17 Nov 2025 |
| @kttns0ut:matrix.org left the room. | 02:30:11 |
| Pol joined the room. | 16:20:52 |
Pol | Hello, I'm trying to find the issue in here: https://github.com/typst/typst/pull/7374 I succeeded to reproduce the issue at home as well. Adding LD_LIBRARY_PATH seem to fix the issue, is it the best option we have to fix that? | 16:21:52 |
Pol | * Hello, Context: https://github.com/typst/typst/pull/7374 I succeeded to reproduce the issue at home as well. Adding LD_LIBRARY_PATH seem to fix the issue, is it the best option we have to fix that? | 16:23:19 |
Pol | I guess adding LD_LIBRARY_PATH = lib.makeLibraryPath [ pkgs.openssl ]; should be OK, do you confirm this is OK to do this? | 16:37:02 |
Alyssa Ross | Usually I'd consider that a last resort after actually linking the library to the binary | 16:40:03 |
Pol | OK I understand, what other option do we have here? | 16:40:30 |