From a3414fc47ef83007c1b6ec0cf37a8f9f82f544fc Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Tue, 16 Jun 2026 22:26:46 +0200 Subject: [PATCH] doc: add note on adding a single Lua package --- doc/languages-frameworks/lua.section.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/languages-frameworks/lua.section.md b/doc/languages-frameworks/lua.section.md index 366f7a497fc8..97161970d8e4 100644 --- a/doc/languages-frameworks/lua.section.md +++ b/doc/languages-frameworks/lua.section.md @@ -162,6 +162,14 @@ the package `luarocks-packages-updater`: nix-shell -p luarocks-packages-updater --run luarocks-packages-updater ``` +To add a new package without updating all packages, run + +```sh + +nix-shell -p luarocks-packages-updater +luarocks-packages-updater add +``` + [luarocks2nix](https://github.com/nix-community/luarocks) is a tool capable of generating nix derivations from both rockspec and src.rock (and favors the src.rock). The automation only goes so far though and some packages need to be customized. These customizations go in [pkgs/development/lua-modules/overrides.nix](https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/lua-modules/overrides.nix).