rustc-wasm32: init at 1.70.0

authored by Peder Bergebakken Sundt and committed by Yt 187afc5d 5fcc0209

+18 -18
+2 -18
pkgs/servers/ldap/lldap/default.nix
··· 7 , nixosTests 8 , rustPlatform 9 , rustc 10 , stdenv 11 , wasm-bindgen-cli 12 , wasm-pack ··· 14 }: 15 16 let 17 - 18 - # replace with upstream wasm rustc, after resolution of 19 - # https://github.com/NixOS/nixpkgs/issues/89426 20 - rustc-wasm = (rustc.override { 21 - stdenv = stdenv.override { 22 - targetPlatform = stdenv.targetPlatform // { 23 - parsed = { 24 - cpu.name = "wasm32"; 25 - vendor.name = "unknown"; 26 - kernel.name = "unknown"; 27 - abi.name = "unknown"; 28 - }; 29 - }; 30 - }; 31 - }).overrideAttrs (attrs: { 32 - configureFlags = attrs.configureFlags ++ ["--set=build.docs=false"]; 33 - }); 34 35 wasm-bindgen-84 = wasm-bindgen-cli.override { 36 version = "0.2.84"; ··· 64 pname = commonDerivationAttrs.pname + "-frontend"; 65 66 nativeBuildInputs = [ 67 - wasm-pack wasm-bindgen-84 binaryen which rustc-wasm rustc-wasm.llvmPackages.lld 68 ]; 69 70 buildPhase = ''
··· 7 , nixosTests 8 , rustPlatform 9 , rustc 10 + , rustc-wasm32 11 , stdenv 12 , wasm-bindgen-cli 13 , wasm-pack ··· 15 }: 16 17 let 18 19 wasm-bindgen-84 = wasm-bindgen-cli.override { 20 version = "0.2.84"; ··· 48 pname = commonDerivationAttrs.pname + "-frontend"; 49 50 nativeBuildInputs = [ 51 + wasm-pack wasm-bindgen-84 binaryen which rustc-wasm32 rustc-wasm32.llvmPackages.lld 52 ]; 53 54 buildPhase = ''
+16
pkgs/top-level/all-packages.nix
··· 17165 17166 inherit (rustPackages) cargo cargo-auditable cargo-auditable-cargo-wrapper clippy rustc rustPlatform; 17167 17168 makeRustPlatform = callPackage ../development/compilers/rust/make-rust-platform.nix { }; 17169 17170 buildRustCrate = callPackage ../build-support/rust/build-rust-crate { };
··· 17165 17166 inherit (rustPackages) cargo cargo-auditable cargo-auditable-cargo-wrapper clippy rustc rustPlatform; 17167 17168 + # https://github.com/NixOS/nixpkgs/issues/89426 17169 + rustc-wasm32 = (rustc.override { 17170 + stdenv = stdenv.override { 17171 + targetPlatform = stdenv.targetPlatform // { 17172 + parsed = { 17173 + cpu.name = "wasm32"; 17174 + vendor.name = "unknown"; 17175 + kernel.name = "unknown"; 17176 + abi.name = "unknown"; 17177 + }; 17178 + }; 17179 + }; 17180 + }).overrideAttrs (old: { 17181 + configureFlags = old.configureFlags ++ ["--set=build.docs=false"]; 17182 + }); 17183 + 17184 makeRustPlatform = callPackage ../development/compilers/rust/make-rust-platform.nix { }; 17185 17186 buildRustCrate = callPackage ../build-support/rust/build-rust-crate { };