riverdelta/shell.nix
2023-12-15 18:32:12 +01:00

18 lines
416 B
Nix

{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
buildInputs = with pkgs; [
rustup
];
packages = with pkgs; [
nodejs-18_x # Node.js 18, plus npm, npx, and corepack
yarn
wasmtime
wasm-tools
binaryen
];
shellHook = ''
export PATH=$PATH:''${CARGO_HOME:-~/.cargo}/bin
export PATH=$PATH:''${RUSTUP_HOME:-~/.rustup}/toolchains/$RUSTC_VERSION-x86_64-unknown-linux-gnu/bin/
'';
}