Nix shell stuff

This commit is contained in:
Daniel Løvbrøtte Olsen 2019-02-25 21:20:43 +01:00
parent 74da9e46b5
commit fdc409d166
3 changed files with 10 additions and 0 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use_nix

1
.gitignore vendored
View File

@ -1 +1,2 @@
config.json
node_modules

8
shell.nix Normal file
View File

@ -0,0 +1,8 @@
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "node";
buildInputs = [ nodejs ];
shellHook = ''
export PATH="$PWD/node_modules/.bin/:$PATH"
'';
}