diff --git a/flake.nix b/flake.nix index 634ea93..9bc88f7 100644 --- a/flake.nix +++ b/flake.nix @@ -34,6 +34,9 @@ wasm-pack ]; + # required, otherwise the dependencies are built for the host system + CARGO_BUILD_TARGET = "wasm32-unknown-unknown"; + overrideMain = (o: o // { buildPhase = '' runHook preBuild