lyra-wasm-scripting-test/shell.nix

28 lines
709 B
Nix
Raw Permalink Normal View History

2024-04-11 23:03:39 +00:00
let
rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
pkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
rust = pkgs.rust-bin.stable.latest.default.override {
targets = [
"x86_64-unknown-linux-gnu"
"wasm32-unknown-unknown"
"wasm32-wasi"
];
extensions = [
"rust-analyzer"
"rust-src"
#"miri-preview"
];
};
in
pkgs.mkShell.override {
stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.clangStdenv;
} rec {
buildInputs = [
rust
] ++ (with pkgs; [
cargo-component wasmtime wasm-tools
cargo-expand
2024-04-11 23:03:39 +00:00
]);
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
}