!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

680 Members
Rust154 Servers

Load older messages


SenderMessageTime
9 Mar 2025
@andrew15_5:matrix.orgAndrewThen how do I add these targets via nixpkgs?16:02:56
@9hp71n:matrix.orgghpzin Regarding your error, there is no wasm32-wasi target in stable.
I assume combine the way you want it, would look for it there.
16:03:15
@emilazy:matrix.orgemily wasm32-unknown-unknown comes out of the box. otherwise pkgsCross 16:03:15
@andrew15_5:matrix.orgAndrewI can't combine latest for main target and latest for other targets?16:04:28
@andrew15_5:matrix.orgAndrew* I can't combine stable for main target and latest for other targets?16:04:37
@emilazy:matrix.orgemily no, you cannot mix rustc version and std version 16:04:55
@emilazy:matrix.orgemilythose are tightly coupled16:04:57
@emilazy:matrix.orgemily also, target support is not solely in std. 16:05:04
@andrew15_5:matrix.orgAndrewthis is what fenix tells16:05:30
@andrew15_5:matrix.orgAndrew what is pkgsCross? 16:09:55
@emilazy:matrix.orgemily pkgsCross.<system> is a Nixpkgs configured for cross-compiling to that system. 16:10:37
@andrew15_5:matrix.orgAndrewAnd which package I need to install for those targets?16:11:37
@emilazy:matrix.orgemily probably pkgsCross.<system>.buildPackages.rustc 16:12:26
@andrew15_5:matrix.orgAndrewwell damn, 2600 MiB is kinda a lot16:17:47
@andrew15_5:matrix.orgAndrewAnd it also builds something? Why is that?16:18:17
@andrew15_5:matrix.orgAndrew builds llvm-19.1.7 16:18:29
@andrew15_5:matrix.orgAndrewnot in the nixos cache?16:19:04
@emilazy:matrix.orgemilycross build packages get rebuilt for the new target. for some things that's dumb and should be fixed though, like LLVM16:20:43
@andrew15_5:matrix.orgAndrewso you're saying there should be a cache for llvm?16:21:24
@andrew15_5:matrix.orgAndrewI'm not sure if you build the build tools for different target, how would I then be able to use them to build the program for that target if those build tools are not for my host target.16:23:02
@emilazy:matrix.orgemily they are rebuilt for a different --target, but the same --host. 16:23:18
@andrew15_5:matrix.orgAndrewOr does it compile so that I can run them from the host target to build the target-target?16:23:26
@emilazy:matrix.orgemily that is what pkgsCross.<system>.buildPackages means 16:23:26
@emilazy:matrix.orgemilyno, I'm saying it's probably a packaging infelicity16:23:46
@andrew15_5:matrix.orgAndrewuhhh, so there shouldn't be any cache for llvm?16:24:41
@andrew15_5:matrix.orgAndrew4467 steps is soo much...16:25:10
@andrew15_5:matrix.orgAndrew
    home.packages = with pkgs; [
      cargo
      clippy
      rustc
      pkgsCross.wasi32.buildPackages.rustc
      rustfmt
      rust-analyzer-nightly
      cargo-expand
      pkg-config
    ];
16:47:03
@emilazy:matrix.orgemilybtw at least some WASI stuff should be cached because Firefox uses it.16:48:33
@andrew15_5:matrix.orgAndrew I can't build llvm as it eats all of the memory at step 1321/4467 with a lot of llvm-tblgen processes. 16:48:41
@emilazy:matrix.orgemilyok.p16:48:49

Show newer messages


Back to Room ListRoom Version: 6