From fdc409d1663b7c95aeea95cf00faedb511a48970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Mon, 25 Feb 2019 21:20:43 +0100 Subject: [PATCH] Nix shell stuff --- .envrc | 1 + .gitignore | 1 + shell.nix | 8 ++++++++ 3 files changed, 10 insertions(+) create mode 100644 .envrc create mode 100644 shell.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..4a4726a --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use_nix diff --git a/.gitignore b/.gitignore index d344ba6..95b863a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ config.json +node_modules diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..d8ae26e --- /dev/null +++ b/shell.nix @@ -0,0 +1,8 @@ +with import {}; +stdenv.mkDerivation { + name = "node"; + buildInputs = [ nodejs ]; + shellHook = '' + export PATH="$PWD/node_modules/.bin/:$PATH" + ''; +}