aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--shell.nix11
2 files changed, 13 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index f2e972d..cc2aea0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,5 @@
4 4
5# These are backup files generated by rustfmt 5# These are backup files generated by rustfmt
6**/*.rs.bk 6**/*.rs.bk
7
8result
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..2f3eec8
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,11 @@
1{ pkgs ? import <nixpkgs> {} }:
2
3pkgs.mkShell {
4 name = "rust-env";
5 nativeBuildInputs = with pkgs; [
6 rustc cargo
7 ];
8 buildInputs = with pkgs; [ openssl pkgconfig ];
9
10 RUST_BACKTRACE = 1;
11}