refact: fix wasm-bindgen
This commit is contained in:
parent
6dd69f4a62
commit
0baff16c58
4 changed files with 82 additions and 72 deletions
33
flake.nix
33
flake.nix
|
|
@ -37,25 +37,26 @@
|
|||
rustc = rustToolchain;
|
||||
};
|
||||
# Must match the wasm-bindgen version in Cargo.lock
|
||||
wasm-bindgen-version = "0.2.121";
|
||||
wasm-bindgen-cli = final.buildWasmBindgenCli rec {
|
||||
version = wasm-bindgen-version;
|
||||
src = final.fetchCrate {
|
||||
pname = "wasm-bindgen-cli";
|
||||
inherit version;
|
||||
hash = "sha256-ZOMgFNOcGkO66Jz/Z83eoIu+DIzo3Z/vq6Z5g6BDY/w=";
|
||||
};
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit src;
|
||||
name = "wasm-bindgen-cli-vendor";
|
||||
hash = "sha256-DPdCDPTAPBrbqLUqnCwQu1dePs9lGg85JCJOCIr9qjU=";
|
||||
};
|
||||
};
|
||||
wasm-bindgen-version = "0.2.118";
|
||||
# wasm-bindgen-version = "0.2.121";
|
||||
# wasm-bindgen-cli = final.buildWasmBindgenCli rec {
|
||||
# version = wasm-bindgen-version;
|
||||
# src = final.fetchCrate {
|
||||
# pname = "wasm-bindgen-cli";
|
||||
# inherit version;
|
||||
# hash = "sha256-ZOMgFNOcGkO66Jz/Z83eoIu+DIzo3Z/vq6Z5g6BDY/w=";
|
||||
# };
|
||||
# cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
# inherit src;
|
||||
# name = "wasm-bindgen-cli-vendor";
|
||||
# hash = "sha256-DPdCDPTAPBrbqLUqnCwQu1dePs9lGg85JCJOCIr9qjU=";
|
||||
# };
|
||||
# };
|
||||
|
||||
frontendCargoDeps = rustPlatform.fetchCargoVendor {
|
||||
src = ./.;
|
||||
name = "trictrac-frontend-vendor";
|
||||
hash = "sha256-LxqqHxNRZ9jhdh8JJUb/Wt5phJLmB3CMXmYNA19yOCM=";
|
||||
hash = "sha256-lapxu9R6s2ASGdpnU0dht4jxewQjbrXlAkpFf/GsK/Q=";
|
||||
};
|
||||
in
|
||||
final.stdenv.mkDerivation {
|
||||
|
|
@ -66,7 +67,7 @@
|
|||
rustToolchain
|
||||
lld
|
||||
rustPlatform.cargoSetupHook
|
||||
wasm-bindgen-cli
|
||||
wasm-bindgen-cli_0_2_118
|
||||
trunk
|
||||
binaryen
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue