mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-22 19:40:14 -04:00
fix: various nix build issues
This commit is contained in:
parent
df88c2b7bd
commit
263abda17b
11
flake.nix
11
flake.nix
@ -69,8 +69,15 @@
|
|||||||
root = ./.;
|
root = ./.;
|
||||||
});
|
});
|
||||||
kitchenWasmDebug = kitchenWasmGen {
|
kitchenWasmDebug = kitchenWasmGen {
|
||||||
inherit pkgs rust-wasm wasm-bindgen version;
|
inherit pkgs rust-wasm wasm-bindgen version cargo-wasm2map;
|
||||||
features = "--features debug_logs";
|
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 {
|
kitchenDebug = (kitchenGen {
|
||||||
inherit pkgs version naersk-lib rust-wasm;
|
inherit pkgs version naersk-lib rust-wasm;
|
||||||
|
@ -34,9 +34,7 @@ stdenv.mkDerivation {
|
|||||||
cp -r static $out
|
cp -r static $out
|
||||||
export project=kitchen
|
export project=kitchen
|
||||||
sh ../scripts/wasm-build.sh release
|
sh ../scripts/wasm-build.sh release
|
||||||
sh ../scripts/wasm-opt.sh release
|
|
||||||
sh ../scripts/wasm-sourcemap.sh
|
sh ../scripts/wasm-sourcemap.sh
|
||||||
rm -f $out/kitchen_wasm_bg.wasm
|
|
||||||
cp -r index.html $out
|
cp -r index.html $out
|
||||||
cp -r favicon.ico $out
|
cp -r favicon.ico $out
|
||||||
rm -rf $out/release
|
rm -rf $out/release
|
||||||
|
Loading…
x
Reference in New Issue
Block a user