Adds .envrc and shell.nix

This commit is contained in:
Thomas Hartmann 2019-10-10 21:23:12 +02:00
parent e18892000a
commit d2eb6f6646
2 changed files with 11 additions and 0 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use nix

10
shell.nix Normal file
View File

@ -0,0 +1,10 @@
let
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
nixpkgs = import <nixpkgs> { 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 ];
}