Skip to content

Commit 3a7eecb

Browse files
chore: better nix dev shell
1 parent be234c8 commit 3a7eecb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ format:
1010
test:
1111
# TODO: install tree-sitter-http as a test dependency using nix
1212
# or version it appart from NURR
13-
LUA_PATH="$(shell luarocks path --lr-path --lua-version 5.1 --local)" \
14-
LUA_CPATH="$(shell luarocks path --lr-cpath --lua-version 5.1 --local)" \
15-
luarocks install --local --lua-version 5.1 --dev tree-sitter-http
13+
# LUA_PATH="$(shell luarocks path --lr-path --lua-version 5.1 --local)" \
14+
# LUA_CPATH="$(shell luarocks path --lr-cpath --lua-version 5.1 --local)" \
15+
# luarocks install --local --lua-version 5.1 --dev tree-sitter-http
1616
LUA_PATH="$(shell luarocks path --lr-path --lua-version 5.1 --local)" \
1717
LUA_CPATH="$(shell luarocks path --lr-cpath --lua-version 5.1 --local)" \
1818
luarocks test --local --lua-version 5.1 --dev

flake.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
devShell = pkgs.mkShell {
3434
name = "rest.nvim devShell";
3535
shellHook = ''
36+
export LUA_PATH="$(luarocks path --lr-path --lua-version 5.1 --local)"
37+
export LUA_CPATH="$(luarocks path --lr-cpath --lua-version 5.1 --local)"
3638
'';
3739
buildInputs = [
3840
pkgs.sumneko-lua-language-server

0 commit comments

Comments
 (0)