From be38bb6b5f67b6d77ba561f3a25c946f520a8262 Mon Sep 17 00:00:00 2001 From: Noelle Calliope <1581674+mekanoe@users.noreply.github.com> Date: Mon, 4 Sep 2023 01:30:40 -0400 Subject: [PATCH] use nix --- .envrc | 3 +++ .gitignore | 3 ++- shell.nix | 12 ++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .envrc create mode 100644 shell.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..41dc922 --- /dev/null +++ b/.envrc @@ -0,0 +1,3 @@ +use nix + +source .envrc-local \ No newline at end of file diff --git a/.gitignore b/.gitignore index 7dc35cd..3c29b88 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /target .DS_Store -*/.DS_Store \ No newline at end of file +*/.DS_Store +.envrc-local \ No newline at end of file diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..25e0f7a --- /dev/null +++ b/shell.nix @@ -0,0 +1,12 @@ +let + moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz); + nixpkgs = import { overlays = [ moz_overlay ]; }; +in + with nixpkgs; + stdenv.mkDerivation { + name = "moz_overlay_shell"; + buildInputs = [ + nixpkgs.latest.rustChannels.nightly.rust + nixpkgs.rust-analyzer + ]; + } \ No newline at end of file