-
-
Notifications
You must be signed in to change notification settings - Fork 14k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lua: consolidate setup hooks #67239
Lua: consolidate setup hooks #67239
Conversation
thanks for taking care of this, I remember adjusting LUA_PATH to work with modules that had stuff in strange places but maybe with luarocks that was fixed. Anyway this will definitely needs a few nix-review runs to make sure it works fine/fix whatever needs to be fixed. I am |
Odd. I just force-pushed the branch to fix an issue with my change to |
wrong remote maybe :p ? |
No, I followed the branch link at the top of this PR, and the commit hashes are clearly different. What the hell? I guess I'll try rebasing to master and force-push again to see if that gets github to pick it up =/. |
- Lua packages now consistently use LUA_PATH/LUA_CPATH rather than a mix of those and NIX_LUA_PATH/NIX_LUA_CPATH - Lua libraries are now consistently only added to the search path variables if: 1) The library actually has a corresponding directory to search 2) The library is not already present in the search path This should help prevent the search paths from growing overly large - Fixed bugs in some path helpers - Changed the affected shell script indentation to 2 spaces; nixpkgs shell scripts are inconsistently split between 2 and 4 space indentation, but 2 matches better with the Nix expressions, so IMO it makes more sense
Nope, that didn't work either. |
19f476e
to
d6a555b
Compare
OK, looks like it was super delayed for some reason. |
Did a quick test:
It works like before. Great work @Shados |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @teto @vcunat can one of you two poke ofborg for this? I know from last time it would take me a couple days to do a nix-review for all the builds >.>.
Both prosody tests pass, I've manually tested luakit, and I've tested a handful of
buildLuaPackage
andbuildLuarocksPackage
derivations, all have worked fine.