From 3a7eecb442d9c02538cc99f76c611ba4912654a3 Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Mon, 30 Sep 2024 15:25:02 +0000 Subject: [PATCH] chore: better nix dev shell --- Makefile | 6 +++--- flake.nix | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d07f6d4..014b2ae 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/flake.nix b/flake.nix index bee9dc7..e6ba12c 100644 --- a/flake.nix +++ b/flake.nix @@ -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