add shell.nix

This commit is contained in:
Simen Kirkvik
2023-09-18 13:54:20 +02:00
parent b5c16bdf61
commit 4e340eb25c
2 changed files with 16 additions and 0 deletions

9
.envrc Normal file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
# the shebang is ignored, but nice for editors
if type -P lorri &>/dev/null; then
eval "$(lorri direnv)"
else
echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]'
use nix
fi

7
shell.nix Normal file
View File

@@ -0,0 +1,7 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
nodejs-18_x
];
}