From 1071a4a3c2f3a1ad7a46c0dce0c53c680730f8d0 Mon Sep 17 00:00:00 2001 From: heyarne Date: Mon, 19 Apr 2021 18:51:48 +0200 Subject: [PATCH] Setup direnv-based development environment --- .envrc | 13 +++++++++++++ shell.nix | 8 ++++++++ 2 files changed, 21 insertions(+) create mode 100644 .envrc create mode 100644 shell.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..cb20e39 --- /dev/null +++ b/.envrc @@ -0,0 +1,13 @@ +if type lorri &>/dev/null; then + echo "direnv: using lorri from PATH ($(type -p lorri))" + eval "$(lorri direnv)" +else + # fall back to using direnv's builtin nix support + # to prevent bootstrapping problems. + use nix +fi + +# source an additional user-specific .envrc in ./.envrc-local +if [ -e .envrc-local ]; then + source .envrc-local +fi diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..0b6b743 --- /dev/null +++ b/shell.nix @@ -0,0 +1,8 @@ +with import { }; +mkShell rec { + name = "heyarne.all-my-friends.server"; + buildInputs = with pkgs; [ + clojure + nodejs-14_x + ]; +}