diff --git a/.envrc b/.envrc new file mode 100644 index 000000000..65326bb6d --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix \ No newline at end of file diff --git a/shell.nix b/shell.nix new file mode 100644 index 000000000..e6062b2cb --- /dev/null +++ b/shell.nix @@ -0,0 +1,10 @@ +let + moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz); + nixpkgs = import { overlays = [ moz_overlay ]; }; + nightly = ((nixpkgs.rustChannelOf { date = "2019-09-01"; channel = "nightly"; }).rust.override { extensions = [ "rust-src" "rls-preview" "clippy-preview" "rust-analysis" "rustfmt-preview" ];}); +in +with nixpkgs; +stdenv.mkDerivation { + name = "nushell-rust"; + buildInputs = [ nightly openssl_1_1 pkg-config ]; +}