28 lines
475 B
Nix
28 lines
475 B
Nix
let
|
|
pkgs = import <nixpkgs> {
|
|
overlays = [
|
|
(import (builtins.fetchTarball
|
|
"https://github.com/oxalica/rust-overlay/archive/master.tar.gz"))
|
|
];
|
|
};
|
|
|
|
rust = pkgs.rust-bin.stable.latest.rust.override {
|
|
extensions = [ "rust-src" ];
|
|
};
|
|
|
|
in with pkgs;
|
|
pkgs.mkShell rec {
|
|
name = "rust";
|
|
buildInputs = [
|
|
openssl
|
|
pkg-config
|
|
cargo
|
|
rust
|
|
rustfmt
|
|
rust-analyzer
|
|
wasm-pack
|
|
wasm-bindgen-cli
|
|
nodePackages.rollup
|
|
];
|
|
}
|