diff options
author | Akshay <[email protected]> | 2020-08-18 10:23:55 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-08-18 10:23:55 +0100 |
commit | fed2691d6045844214fa19b2dbdfe37d299bc90a (patch) | |
tree | 24bee4ac48a4a0e66307015e26cd72732d86de61 | |
parent | 5deab795f980ebb2b5e903b3a424703bb63b83a9 (diff) |
add nix env
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | shell.nix | 11 |
2 files changed, 13 insertions, 0 deletions
@@ -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 | |||
8 | 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 @@ | |||
1 | { pkgs ? import <nixpkgs> {} }: | ||
2 | |||
3 | pkgs.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 | } | ||