From c130459288a2adfbe3ab48d9d11f37aa3290443d Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 25 Sep 2022 15:25:27 +0800 Subject: [PATCH] shells/lua: init devshell --- shells/default.nix | 2 ++ shells/lua.nix | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 shells/lua.nix diff --git a/shells/default.nix b/shells/default.nix index 13160a68..2411abfd 100644 --- a/shells/default.nix +++ b/shells/default.nix @@ -10,6 +10,8 @@ with pkgs; { gtk3 = callPackage ./gtk.nix { gtk = gtk3; libportal-gtk = libportal-gtk3; }; gtk4 = callPackage ./gtk.nix { gtk = gtk4; wrapGAppsHook = wrapGAppsHook4; libportal-gtk = libportal-gtk4; }; hugo = callPackage ./hugo.nix { }; + lua_5_2 = callPackage ./lua.nix { lua = lua52Packages.lua; }; + lua_5_3 = callPackage ./lua.nix { lua = lua53Packages.lua; }; rust = callPackage ./rust.nix { }; tic-80 = callPackage ./tic-80.nix { }; } diff --git a/shells/lua.nix b/shells/lua.nix new file mode 100644 index 00000000..a59316ca --- /dev/null +++ b/shells/lua.nix @@ -0,0 +1,12 @@ +# It is much more recommended to create a project-specific development +# environment for Lua projects instead. +{ mkShell, lua, luarocks, stylua, sumneko-lua-language-server }: + +mkShell { + packages = [ + lua + luarocks + stylua + sumneko-lua-language-server + ]; +}