mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
awesome: fix LUA_PATH for luaModules
lua modules can be also within share/ within a package. Previously only lib/ was included
This commit is contained in:
parent
b32252ddfa
commit
0a42f98eac
@ -6,7 +6,7 @@ let
|
|||||||
|
|
||||||
cfg = config.services.xserver.windowManager.awesome;
|
cfg = config.services.xserver.windowManager.awesome;
|
||||||
awesome = cfg.package;
|
awesome = cfg.package;
|
||||||
|
inherit (pkgs.luaPackages) getLuaPath getLuaCPath;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -46,10 +46,8 @@ in
|
|||||||
{ name = "awesome";
|
{ name = "awesome";
|
||||||
start =
|
start =
|
||||||
''
|
''
|
||||||
${concatMapStrings (pkg: ''
|
export LUA_CPATH="${lib.concatStringsSep ";" (map getLuaCPath cfg.luaModules)}"
|
||||||
export LUA_CPATH=$LUA_CPATH''${LUA_CPATH:+;}${pkg}/lib/lua/${awesome.lua.luaversion}/?.so
|
export LUA_PATH="${lib.concatStringsSep ";" (map getLuaPath cfg.luaModules)}"
|
||||||
export LUA_PATH=$LUA_PATH''${LUA_PATH:+;}${pkg}/lib/lua/${awesome.lua.luaversion}/?.lua
|
|
||||||
'') cfg.luaModules}
|
|
||||||
|
|
||||||
${awesome}/bin/awesome &
|
${awesome}/bin/awesome &
|
||||||
waitPID=$!
|
waitPID=$!
|
||||||
@ -59,5 +57,4 @@ in
|
|||||||
environment.systemPackages = [ awesome ];
|
environment.systemPackages = [ awesome ];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user