libinput: luaSupport flag (#523054)
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
meson,
|
||||
ninja,
|
||||
libevdev,
|
||||
lua5_4,
|
||||
mtdev,
|
||||
udev,
|
||||
wacomSupport ? stdenv.hostPlatform.isLinux,
|
||||
@@ -20,6 +19,8 @@
|
||||
cairo,
|
||||
glib,
|
||||
gtk3,
|
||||
luaSupport ? true,
|
||||
lua5_4,
|
||||
testsSupport ? false,
|
||||
check,
|
||||
valgrind,
|
||||
@@ -32,8 +33,6 @@
|
||||
}:
|
||||
|
||||
let
|
||||
mkFlag = optSet: flag: "-D${flag}=${lib.boolToString optSet}";
|
||||
|
||||
sphinx-build =
|
||||
let
|
||||
env = python3.withPackages (
|
||||
@@ -84,7 +83,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [
|
||||
libevdev
|
||||
lua5_4
|
||||
mtdev
|
||||
(python3.withPackages (
|
||||
pp: with pp; [
|
||||
@@ -101,6 +99,9 @@ stdenv.mkDerivation rec {
|
||||
++ lib.optionals wacomSupport [
|
||||
libwacom
|
||||
]
|
||||
++ lib.optionals luaSupport [
|
||||
lua5_4
|
||||
]
|
||||
++ lib.optionals eventGUISupport [
|
||||
# GUI event viewer
|
||||
cairo
|
||||
@@ -119,10 +120,11 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
(mkFlag documentationSupport "documentation")
|
||||
(mkFlag eventGUISupport "debug-gui")
|
||||
(mkFlag testsSupport "tests")
|
||||
(mkFlag wacomSupport "libwacom")
|
||||
(lib.mesonBool "documentation" documentationSupport)
|
||||
(lib.mesonBool "debug-gui" eventGUISupport)
|
||||
(lib.mesonBool "tests" testsSupport)
|
||||
(lib.mesonBool "libwacom" wacomSupport)
|
||||
(lib.mesonEnable "lua-plugins" luaSupport)
|
||||
"--sysconfdir=/etc"
|
||||
"--libexecdir=${placeholder "bin"}/libexec"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user