Set up shell.nix direnv

This commit is contained in:
Elnu 2023-03-29 21:07:09 -07:00
parent 364fdede86
commit c467816a0b
2 changed files with 17 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use nix

16
shell.nix Normal file
View file

@ -0,0 +1,16 @@
{ pkgs ? import <nixpkgs> {}}:
pkgs.mkShell {
buildInputs = with pkgs; [
rustc
cargo
rustfmt
rust-analyzer
clippy
pkg-config
openssl
];
RUST_BACKTRACE = 1;
}