From d2eb6f6646195b6c95b09c9ed141a811709b5502 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 10 Oct 2019 21:23:12 +0200 Subject: [PATCH] Adds .envrc and shell.nix --- .envrc | 1 + shell.nix | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 .envrc create mode 100644 shell.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000000..65326bb6dd --- /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 0000000000..e6062b2cb0 --- /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 ]; +}