allow to compile wasm stuff
This commit is contained in:
parent
e737ffa9a5
commit
358d57e8eb
|
@ -15,10 +15,19 @@
|
|||
system,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
fenix = with inputs.fenix.packages.${system}; combine [
|
||||
latest.toolchain
|
||||
targets.wasm32-unknown-unknown.latest.rust-std
|
||||
];
|
||||
in
|
||||
mkShell {
|
||||
# Create your shell
|
||||
nativeBuildInputs = [
|
||||
inputs.fenix.packages.${system}.complete.toolchain
|
||||
fenix
|
||||
pkgs.llvmPackages.bintools
|
||||
pkgs.wasm-pack
|
||||
];
|
||||
|
||||
CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_LINKER = "lld";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue