awesome: Make sure it compiles with luajit

This commit is contained in:
Doron Behar 2019-10-17 19:03:19 +03:00
parent 7885eeaffd
commit ab9fd67b68

View File

@ -12,7 +12,10 @@
# needed for beautiful.gtk to work # needed for beautiful.gtk to work
assert gtk3Support -> gtk3 != null; assert gtk3Support -> gtk3 != null;
with luaPackages; stdenv.mkDerivation rec { stdenv.mkDerivation rec {
lgi = luaPackages.lgi;
lua = luaPackages.lua;
ldoc = luaPackages.ldoc;
pname = "awesome"; pname = "awesome";
version = "4.3"; version = "4.3";
@ -49,8 +52,11 @@ with luaPackages; stdenv.mkDerivation rec {
xcbutilxrm ] xcbutilxrm ]
++ stdenv.lib.optional gtk3Support gtk3; ++ stdenv.lib.optional gtk3Support gtk3;
#cmakeFlags = "-DGENERATE_MANPAGES=ON"; cmakeFlags = [
cmakeFlags = "-DOVERRIDE_VERSION=${version}"; #"-DGENERATE_MANPAGES=ON"
"-DOVERRIDE_VERSION=${version}"
] ++ stdenv.lib.optional luaPackages.isLuaJIT "-DLUA_LIBRARY=${lua}/lib/libluajit-5.1.so"
;
GI_TYPELIB_PATH = "${pango.out}/lib/girepository-1.0"; GI_TYPELIB_PATH = "${pango.out}/lib/girepository-1.0";
# LUA_CPATH and LUA_PATH are used only for *building*, see the --search flags # LUA_CPATH and LUA_PATH are used only for *building*, see the --search flags