Skip to content

Commit

Permalink
chore: better nix dev shell
Browse files Browse the repository at this point in the history
  • Loading branch information
boltlessengineer committed Sep 30, 2024
1 parent be234c8 commit 3a7eecb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ format:
test:
# TODO: install tree-sitter-http as a test dependency using nix
# or version it appart from NURR
LUA_PATH="$(shell luarocks path --lr-path --lua-version 5.1 --local)" \
LUA_CPATH="$(shell luarocks path --lr-cpath --lua-version 5.1 --local)" \
luarocks install --local --lua-version 5.1 --dev tree-sitter-http
# LUA_PATH="$(shell luarocks path --lr-path --lua-version 5.1 --local)" \
# LUA_CPATH="$(shell luarocks path --lr-cpath --lua-version 5.1 --local)" \
# luarocks install --local --lua-version 5.1 --dev tree-sitter-http
LUA_PATH="$(shell luarocks path --lr-path --lua-version 5.1 --local)" \
LUA_CPATH="$(shell luarocks path --lr-cpath --lua-version 5.1 --local)" \
luarocks test --local --lua-version 5.1 --dev
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
devShell = pkgs.mkShell {
name = "rest.nvim devShell";
shellHook = ''
export LUA_PATH="$(luarocks path --lr-path --lua-version 5.1 --local)"
export LUA_CPATH="$(luarocks path --lr-cpath --lua-version 5.1 --local)"
'';
buildInputs = [
pkgs.sumneko-lua-language-server
Expand Down

0 comments on commit 3a7eecb

Please sign in to comment.