flake.nix: Fix naersk dependency build target

master
Simon Bruder 2022-07-16 19:19:30 +02:00
parent 1aa6568516
commit 62c0b0968f
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 3 additions and 0 deletions

View File

@ -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