Add default.nix & direnv.
This commit is contained in:
parent
db29d662c6
commit
d4c94a5a3a
27
default.nix
Normal file
27
default.nix
Normal file
@ -0,0 +1,27 @@
|
||||
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
|
||||
];
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user