fix: various nix build issues

This commit is contained in:
Jeremy Wall 2024-09-23 20:05:43 -04:00
parent df88c2b7bd
commit 263abda17b
2 changed files with 9 additions and 4 deletions

View File

@ -69,8 +69,15 @@
root = ./.;
});
kitchenWasmDebug = kitchenWasmGen {
inherit pkgs rust-wasm wasm-bindgen version;
features = "--features debug_logs";
inherit pkgs rust-wasm wasm-bindgen version cargo-wasm2map;
lockFile = ./Cargo.lock;
outputHashes = {
# I'm maintaining some patches for these so the lockfile hashes are a little
# incorrect. We override those here.
"wasm-web-component-0.2.0" = "sha256-quuPgzGb2F96blHmD3BAUjsWQYbSyJGZl27PVrwL92k=";
"sycamore-0.8.2" = "sha256-D968+8C5EelGGmot9/LkAlULZOf/Cr+1WYXRCMwb1nQ=";
};
#features = "--features debug_logs";
};
kitchenDebug = (kitchenGen {
inherit pkgs version naersk-lib rust-wasm;

View File

@ -34,9 +34,7 @@ stdenv.mkDerivation {
cp -r static $out
export project=kitchen
sh ../scripts/wasm-build.sh release
sh ../scripts/wasm-opt.sh release
sh ../scripts/wasm-sourcemap.sh
rm -f $out/kitchen_wasm_bg.wasm
cp -r index.html $out
cp -r favicon.ico $out
rm -rf $out/release