nixpkgs/pkgs/applications
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
..
altcoins parity: 2.2.9 -> 2.4.5 2019-04-23 10:05:12 +03:00
audio Merge pull request #57793 from schmittlauch/soundkonverter 2019-04-27 10:39:55 +01:00
backup treewide: no gnome aliases 2019-03-24 14:46:50 -04:00
display-managers sddm: 0.18.0 -> 0.18.1 2019-03-31 11:37:03 -05:00
editors jetbrains.webstorm: 2019.1 -> 2019.1.1 2019-04-27 04:03:57 -07:00
gis qgis: 3.4.6 -> 3.4.7 2019-04-26 15:11:28 +02:00
graphics freecad: 0.17 -> 0.18.1 (#59923) 2019-04-26 09:46:33 +02:00
kde knotes: init 2019-04-16 19:14:33 -05:00
misc Merge pull request #60290 from lheckemann/bump-kanboard 2019-04-27 12:38:59 +00:00
networking Merge pull request #60148 from elitak/ipfs-bump 2019-04-27 08:02:06 +02:00
office zim: 0.70 -> 0.71.0 2019-04-27 13:09:40 +02:00
radio urh: 2.5.6 -> 2.5.7 2019-04-16 18:28:52 +02:00
science Merge pull request #59484 from r-ryantm/auto-update/eagle 2019-04-25 23:32:25 +02:00
search treewide: Change URLs to HTTPS 2019-04-22 10:19:54 +02:00
version-management git-review: 1.27.0 -> 1.28.0 (#59513) 2019-04-25 23:50:43 +02:00
video treewide: Change URLs to HTTPS 2019-04-22 10:19:54 +02:00
virtualization qemu: fix cross (#60261) 2019-04-27 09:19:06 +02:00
window-managers awesome: refactor LUA_PATH env var and don't expose it at runtime 2019-04-27 15:49:43 +01:00