Setup direnv-based development environment

This commit is contained in:
heyarne 2021-04-19 18:51:48 +02:00
commit 1071a4a3c2
2 changed files with 21 additions and 0 deletions

13
.envrc Normal file
View file

@ -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

8
shell.nix Normal file
View file

@ -0,0 +1,8 @@
with import <nixpkgs> { };
mkShell rec {
name = "heyarne.all-my-friends.server";
buildInputs = with pkgs; [
clojure
nodejs-14_x
];
}