From 58b1fced2563f40990123ab362b0df53b5a91c0e Mon Sep 17 00:00:00 2001 From: Malte Voos Date: Sun, 2 Apr 2023 12:24:23 +0200 Subject: make it run in the browser --- flake.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 9939f68..20e4c0e 100644 --- a/flake.nix +++ b/flake.nix @@ -12,19 +12,22 @@ let pkgs = import nixpkgs { inherit system; - overlays = [ fenix.overlay ]; + overlays = [ fenix.overlays.default ]; }; in { devShell = with pkgs; mkShell rec { nativeBuildInputs = [ - (fenix.packages.${system}.complete.withComponents [ - "cargo" - "clippy" - "rust-src" - "rustc" - "rustfmt" + (with fenix.packages.${system}; combine [ + complete.cargo + complete.clippy + complete.rust-src + complete.rustc + complete.rustfmt + targets.wasm32-unknown-unknown.latest.rust-std ]) + wasm-pack + wasm-bindgen-cli rust-analyzer-nightly cargo-edit -- cgit 1.4.1