Skip to content

Commit

Permalink
fenix seems to have removed some wasm32 libraries from latest
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese committed Feb 4, 2025
1 parent 0f9251d commit d2df41e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pkgs/modules/rust/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,20 @@ let
rust-channel-name = if fenix-channel-name == "latest" then "nightly" else fenix-channel-name;
channel = pkgs.fenix."${fenix-channel-name}";

stripped-toolchain = pkgs.fenix.combine [
stripped-toolchain = pkgs.fenix.combine ([
(channel.withComponents [
"cargo"
"llvm-tools"
"rust-src"
"rust-std"
"rustc"
])
pkgs.fenix.targets.wasm32-wasi.${fenix-channel-name}.rust-std
pkgs.fenix.targets.wasm32-unknown-unknown.${fenix-channel-name}.rust-std
];
] ++ (
if fenix-channel-name == "nightly" then [
pkgs.fenix.targets.wasm32-wasi.${fenix-channel-name}.rust-std
pkgs.fenix.targets.wasm32-unknown-unknown.${fenix-channel-name}.rust-std
] else [ ]
));

toolchain = pkgs.fenix.combine [
channel.toolchain
Expand Down

0 comments on commit d2df41e

Please sign in to comment.