diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..1d953f4 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix diff --git a/.gitignore b/.gitignore index 96ef6c0..7d4d835 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /target Cargo.lock +.direnv diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..acc1159 --- /dev/null +++ b/shell.nix @@ -0,0 +1,14 @@ +let + rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz"); + pkgs = import { overlays = [ rust_overlay ]; }; + rustVersion = "1.56.1"; + rust = pkgs.rust-bin.stable.${rustVersion}.default; +in +pkgs.mkShell { + buildInputs = [ + rust + ] ++ (with pkgs; [ + pkg-config + ]); + RUST_BACKTRACE = 1; +}