From fed2691d6045844214fa19b2dbdfe37d299bc90a Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 18 Aug 2020 14:53:55 +0530 Subject: add nix env --- .gitignore | 2 ++ shell.nix | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 shell.nix diff --git a/.gitignore b/.gitignore index f2e972d..cc2aea0 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ # These are backup files generated by rustfmt **/*.rs.bk + +result diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..2f3eec8 --- /dev/null +++ b/shell.nix @@ -0,0 +1,11 @@ +{ pkgs ? import {} }: + +pkgs.mkShell { + name = "rust-env"; + nativeBuildInputs = with pkgs; [ + rustc cargo + ]; + buildInputs = with pkgs; [ openssl pkgconfig ]; + + RUST_BACKTRACE = 1; +} -- cgit v1.2.3