Setup direnv-based development environment
This commit is contained in:
parent
82bc62bc83
commit
1071a4a3c2
2 changed files with 21 additions and 0 deletions
13
.envrc
Normal file
13
.envrc
Normal 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
8
shell.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
with import <nixpkgs> { };
|
||||||
|
mkShell rec {
|
||||||
|
name = "heyarne.all-my-friends.server";
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
clojure
|
||||||
|
nodejs-14_x
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue