| 17 Nov 2025 |
Pol | OK I understand, what other option do we have here? | 16:40:30 |
Alyssa Ross | CARGO_TARGET_${stdenv.hostPlatform.rust.cargoEnvVarTarget}_RUSTFLAGS = "-lssl" | 16:41:11 |
Alyssa Ross | but the 100% best way to do this is to fix upstream to properly link the library | 16:41:30 |
Pol | I will add your comment in the PR | 16:41:42 |
Pol | Or perhaps you want to do it? | 16:41:51 |
Alyssa Ross | you're welcome to | 16:41:56 |
Alyssa Ross | I'm slammed today | 16:41:59 |
Pol | Same... | 16:42:10 |
Pol | I'll do it, thanks for the tips | 16:42:14 |
Alyssa Ross | sometimes whatever crate links the library will have a Cargo feature option to control whether it dlopens or properly links | 16:42:17 |
| 18 Nov 2025 |
| QuadRadical (Ping) changed their profile picture. | 01:59:42 |
| 19 Nov 2025 |
| 7karni joined the room. | 12:07:30 |
| 20 Nov 2025 |
| John joined the room. | 04:58:48 |
dotlambda | 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 | 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 | * 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 |
rosssmyth | You may be able to do something funny like setting the platforms to a wasi and require people to use pkgsCross.wasi32. But I have no idea what the state of compiling for wasi32 is or if that would work. Would be annoying for end-users though. | 21:41:41 |
Sandro 🐧 | mitmproxy-linux is cross compiling without anything extra to something wasm | 21:46:52 |
Sandro 🐧 | *ebpf not wasm | 21:49:53 |
Sandro 🐧 | your target is missing here https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/rust/rustc.nix#L158-L161 though | 21:50:09 |
Sandro 🐧 | maybe this hint https://github.com/NixOS/nixpkgs/blob/master/lib/systems/default.nix#L504 helps | 21:51:07 |
dotlambda | I would hope that adding something like pkgsCross.wasi32.buildPackages.rustc does the trick | 22:03:08 |
rosssmyth | Probably will, but that has the downside of instantiating a whole other nixpkgs | 22:03:38 |
dotlambda | pkgsCross.wasi32 is also used to build Firefox | 22:04:06 |
dotlambda | In reply to @robert:funklause.de I would hope that adding something like pkgsCross.wasi32.buildPackages.rustc does the trick Sadly, it fails to build with a complaint about missing a "wasi-root" key in bootstrap.toml | 22:09:51 |
| 21 Nov 2025 |
| Diogo Correia joined the room. | 09:01:19 |
Diogo Correia | Some progress on this over at https://github.com/NixOS/nixpkgs/pull/463720 | 11:21:35 |
| amadaluzia changed their display name from amadaluzia to amadaluzia (🇹🇷 til 25th). | 14:45:43 |
| isabel changed their profile picture. | 18:14:28 |
| @some1deleted:matrix.org left the room. | 21:23:24 |