!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

640 Members
Rust147 Servers

Load older messages


SenderMessageTime
16 Nov 2025
@k900:0upti.meK900Which patch?11:08:34
@pixelhamster:matrix.orgPixelHamsterThe allow duplicate deps for cargo vendor or something11:22:41
@pixelhamster:matrix.orgPixelHamsterI 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 that11:23:22
@ghpzin:envs.netghpzin 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.netghpzin 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:matrix.orgniklaskorzPatching the lockfile to make sure it only uses one version of dpi is also an option14:14:58
@pixelhamster:matrix.orgPixelHamstercargo generates the lock file, that's not a maintainable solution 16:04:27
@pixelhamster:matrix.orgPixelHamsterI've tried naersk but it sadly couldn't fetch the correct repository, I made an issue on their bug tracker for it16:05:15
17 Nov 2025
@kttns0ut:matrix.org@kttns0ut:matrix.org left the room.02:30:11
@drupol:matrix.orgPol joined the room.16:20:52
@drupol:matrix.orgPol 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
@drupol:matrix.orgPol * 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
@drupol:matrix.orgPol 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
@qyliss:fairydust.spaceAlyssa RossUsually I'd consider that a last resort after actually linking the library to the binary16:40:03
@drupol:matrix.orgPolOK I understand, what other option do we have here?16:40:30
@qyliss:fairydust.spaceAlyssa Ross CARGO_TARGET_${stdenv.hostPlatform.rust.cargoEnvVarTarget}_RUSTFLAGS = "-lssl" 16:41:11
@qyliss:fairydust.spaceAlyssa Rossbut the 100% best way to do this is to fix upstream to properly link the library16:41:30
@drupol:matrix.orgPolI will add your comment in the PR16:41:42
@drupol:matrix.orgPolOr perhaps you want to do it?16:41:51
@qyliss:fairydust.spaceAlyssa Rossyou're welcome to16:41:56
@qyliss:fairydust.spaceAlyssa RossI'm slammed today16:41:59
@drupol:matrix.orgPolSame... 16:42:10
@drupol:matrix.orgPolI'll do it, thanks for the tips16:42:14
@qyliss:fairydust.spaceAlyssa Rosssometimes whatever crate links the library will have a Cargo feature option to control whether it dlopens or properly links16:42:17
18 Nov 2025
@quadradical:federated.nexusQuadRadical (Ping) changed their profile picture.01:59:42
19 Nov 2025
@7karni:matrix.org7karni joined the room.12:07:30
20 Nov 2025
@user12592851:matrix.orgJohn joined the room.04:58:48
@robert:funklause.dedotlambda Is there some way of running cargo build --target=wasm32-wasip1 while building a package for x86_64-linux?
https://github.com/NixOS/nixpkgs/pull/463349
21:19:25
@rosssmyth:matrix.orgrosssmyth Not that I am aware of. You may be able to hack something together with fastCross. But the way the rustc derivation is setup right now makes it hard to just compile a sysroot for a target. 21:38:12
@rosssmyth:matrix.orgrosssmyth * Not that I am aware of. You may be able to hack something together with fastCross. But the way the rustc derivation is setup right now makes it hard to just compile a sysroot for a target without structuring all of your Nixpkgs instance around it. 21:38:35

Show newer messages


Back to Room ListRoom Version: 6