diff options
author | Peder Bergebakken Sundt <pbsds@hotmail.com> | 2023-08-07 19:00:05 +0200 |
---|---|---|
committer | Yt <happysalada@tuta.io> | 2023-09-18 08:13:58 +0000 |
commit | 187afc5d1bd84226dd9b89da3e8a2e6ab4eb4274 (patch) | |
tree | 36aa83001294d2140563f464f5755636d5520867 /pkgs/top-level | |
parent | 5fcc0209794a34f0661ab4b852f05f38965a4d84 (diff) |
rustc-wasm32: init at 1.70.0
Diffstat (limited to 'pkgs/top-level')
-rw-r--r-- | pkgs/top-level/all-packages.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4774c4f1b7962..7dc94d9a8634a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17165,6 +17165,22 @@ with pkgs; inherit (rustPackages) cargo cargo-auditable cargo-auditable-cargo-wrapper clippy rustc rustPlatform; + # https://github.com/NixOS/nixpkgs/issues/89426 + rustc-wasm32 = (rustc.override { + stdenv = stdenv.override { + targetPlatform = stdenv.targetPlatform // { + parsed = { + cpu.name = "wasm32"; + vendor.name = "unknown"; + kernel.name = "unknown"; + abi.name = "unknown"; + }; + }; + }; + }).overrideAttrs (old: { + configureFlags = old.configureFlags ++ ["--set=build.docs=false"]; + }); + makeRustPlatform = callPackage ../development/compilers/rust/make-rust-platform.nix { }; buildRustCrate = callPackage ../build-support/rust/build-rust-crate { }; |