main
Lua Dev Flake
Find the latest version of this template at: https://git.moturpin.com/Moturpin_Manor/nix-devshells/src/branch/master/lua-dev
A Nix flake template for Lua development. Provides a dev shell and a minimal Lua project.
Features
- Lua interpreter and dev shell
- Example project:
src/main.lua(hello world) - Ready for extension with additional Lua modules
Quick Start
Enter the Dev Shell
nix develop git+https://git.moturpin.com/Moturpin_Manor/nix-devshells.git?dir=lua-dev
Initialize a New Project from Template
nix flake init -t git+https://git.moturpin.com/Moturpin_Manor/nix-devshells.git?dir=lua-dev
Run the Example
lua src/main.lua
Packaging for nixpkgs
This template is structured for easy packaging in nixpkgs:
- All sources in
src/ flake.nixprovides a devShell and template- Add a
default.nixor package expression as needed for nixpkgs
See nixpkgs Lua packaging docs for more details.
Included Project Layout
src/
main.lua
You can use this as a starting point for your own Lua project.
Languages
Nix
89.3%
Makefile
7.6%
Lua
3.1%