summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorMalte Voos <git@mal.tc>2023-04-02 12:24:23 +0200
committerMalte Voos <git@mal.tc>2023-04-02 12:24:23 +0200
commit58b1fced2563f40990123ab362b0df53b5a91c0e (patch)
tree84faaa57a23633041baffe5d50467e60abc9d5e9 /flake.nix
parent7d9836ebef1950c550081b2ea9cd3f7718280a02 (diff)
downloadlife-58b1fced2563f40990123ab362b0df53b5a91c0e.tar.gz
life-58b1fced2563f40990123ab362b0df53b5a91c0e.zip
make it run in the browser
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix17
1 files changed, 10 insertions, 7 deletions
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