From 62c0b0968f383ae9ba4af99e82e0abf66d1b39d0 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 16 Jul 2022 19:19:30 +0200 Subject: [PATCH] flake.nix: Fix naersk dependency build target --- flake.nix | 3 +++ 1 file changed, 3 insertions(+) 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