nixpkgs/pkgs
Stefano Mazzucco c973e15fb6 awesome: refactor LUA_PATH env var and don't expose it at runtime
This commit partly reinstates changes from 5465d6f that had been somehow
reverted in 17d3eb2.  Also, a comment has been added in the hope that future
changes won't do the same.

Additionally, refactor the LUA_PATH env var to ensure that the internal lgi lua
files can't be required explicitly and to avoid possible name clashes (this
fixes issue #60232).

Finally, rather than using prepending `?.lua` append `;;` to LUA_PATH. Quoting
@psychon:

> This is interpreted by Lua as "add the default search path here" (which does
> indeed contain ?.lua, but also contains more).

Testing done:

- Build with `nix-build -I /path/to/repo -A awesome`
- Start an X session with xterm only
- Start xephyr, e.g. `Xephyr :1 -name xephyr -screen 512x384 -ac -br -noreset &`
- Run awesome like `DISPLAY=:1.0 ./result/bin/awesome`. Additionally, add
  `--search` options to expose lua modules that have a name clash with lgi's
  internal ones (see #60232 for more details) and `require` them in `rc.lua` to
  prove that they are loaded correctly
2019-04-27 15:49:43 +01:00
..
applications awesome: refactor LUA_PATH env var and don't expose it at runtime 2019-04-27 15:49:43 +01:00
build-support Merge pull request #56259 from dtzWill/feature/minetime 2019-04-25 23:22:30 -05:00
common-updater
data iosevka-bin: 2.2.0 -> 2.2.1 2019-04-27 07:32:48 +02:00
desktops Merge pull request #59966 from romildo/upd.mate 2019-04-24 11:53:39 -03:00
development lua: merge lua5.X interpreters (#59919) 2019-04-27 22:00:12 +09:00
games crispyDoom: 5.5.1 -> 5.5.2 2019-04-27 07:40:33 +02:00
misc Merge pull request #60202 from rvolosatovs/init/vim-visual-multi 2019-04-27 21:57:55 +09:00
os-specific Merge pull request #59748 from dtzWill/update/linux-firmware-20190416 2019-04-27 12:36:55 +00:00
servers eventstore: 4.1.1 -> 5.0.0 (#58774) 2019-04-27 14:57:37 +02:00
shells oh-my-zsh: 2019-04-25 -> 2019-04-26 2019-04-26 18:10:36 -04:00
stdenv
test
tools Merge pull request #59872 from Izorkin/datadog 2019-04-27 19:27:32 +09:00
top-level lua: merge lua5.X interpreters (#59919) 2019-04-27 22:00:12 +09:00