Add nix and envrc setup.

This commit is contained in:
Bill Thiede 2021-02-06 12:41:45 -08:00
parent f025288c8b
commit 3548e078ce
2 changed files with 20 additions and 0 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use_nix

19
default.nix Normal file
View File

@ -0,0 +1,19 @@
let
unstableTarball = fetchTarball
"https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
pkgs = import <nixpkgs> { };
unstable = import unstableTarball { };
in with pkgs;
pkgs.mkShell {
name = "rust";
buildInputs = [
openssl
pkg-config
unstable.cargo
unstable.rustc
unstable.rustfmt
unstable.rust-analyzer
postgresql
];
}