libinput: 1.7.3 → 1.9.1
This commit is contained in:
parent
fd115ece29
commit
c01fd4a3e3
@ -1,9 +1,8 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig
|
{ stdenv, fetchurl, pkgconfig, meson, ninja
|
||||||
, libevdev, mtdev, udev, libwacom
|
, libevdev, mtdev, udev, libwacom
|
||||||
, documentationSupport ? false, doxygen ? null, graphviz ? null # Documentation
|
, documentationSupport ? false, doxygen ? null, graphviz ? null # Documentation
|
||||||
, eventGUISupport ? false, cairo ? null, glib ? null, gtk3 ? null # GUI event viewer support
|
, eventGUISupport ? false, cairo ? null, glib ? null, gtk3 ? null # GUI event viewer support
|
||||||
, testsSupport ? false, check ? null, valgrind ? null
|
, testsSupport ? false, check ? null, valgrind ? null
|
||||||
, autoconf, automake
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert documentationSupport -> doxygen != null && graphviz != null;
|
assert documentationSupport -> doxygen != null && graphviz != null;
|
||||||
@ -11,38 +10,37 @@ assert eventGUISupport -> cairo != null && glib != null && gtk3 != null;
|
|||||||
assert testsSupport -> check != null && valgrind != null;
|
assert testsSupport -> check != null && valgrind != null;
|
||||||
|
|
||||||
let
|
let
|
||||||
mkFlag = optSet: flag: if optSet then "--enable-${flag}" else "--disable-${flag}";
|
mkFlag = optSet: flag: "-D${flag}=${stdenv.lib.boolToString optSet}";
|
||||||
in
|
in
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libinput-${version}";
|
name = "libinput-${version}";
|
||||||
version = "1.7.3";
|
version = "1.9.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.freedesktop.org/software/libinput/${name}.tar.xz";
|
url = "http://www.freedesktop.org/software/libinput/${name}.tar.xz";
|
||||||
sha256 = "07fbzxddvhjcch43hdxb24sj7ri96zzpcjalvsicmw0i4wnn2v89";
|
sha256 = "1y3559146zlfizncky1jlly226i66vwikxhpdkw0jg8v47j0sy7h";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
configureFlags = [
|
mesonFlags = [
|
||||||
(mkFlag documentationSupport "documentation")
|
(mkFlag documentationSupport "documentation")
|
||||||
(mkFlag eventGUISupport "event-gui")
|
(mkFlag eventGUISupport "debug-gui")
|
||||||
(mkFlag testsSupport "tests")
|
(mkFlag testsSupport "tests")
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig meson ninja ]
|
||||||
|
|
||||||
buildInputs = [ libevdev mtdev libwacom autoconf automake ]
|
|
||||||
++ optionals eventGUISupport [ cairo glib gtk3 ]
|
|
||||||
++ optionals documentationSupport [ doxygen graphviz ]
|
++ optionals documentationSupport [ doxygen graphviz ]
|
||||||
++ optionals testsSupport [ check valgrind ];
|
++ optionals testsSupport [ check valgrind ];
|
||||||
|
|
||||||
|
buildInputs = [ libevdev mtdev libwacom ]
|
||||||
|
++ optionals eventGUISupport [ cairo glib gtk3 ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ udev ];
|
propagatedBuildInputs = [ udev ];
|
||||||
|
|
||||||
patches = [ ./udev-absolute-path.patch ];
|
patches = [ ./udev-absolute-path.patch ];
|
||||||
patchFlags = [ "-p0" ];
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Handles input devices in Wayland compositors and provides a generic X.Org input driver";
|
description = "Handles input devices in Wayland compositors and provides a generic X.Org input driver";
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
--- configure.ac 2016-05-27 14:00:25.248388226 +0200
|
--- a/meson.build
|
||||||
+++ configure.ac 2016-05-27 14:01:28.228943416 +0200
|
+++ b/meson.build
|
||||||
@@ -214,7 +214,8 @@ AM_CONDITIONAL(BUILD_DOCS, [test "x$buil
|
@@ -100,7 +100,7 @@
|
||||||
# Used by the udev rules so we can use callouts during testing without
|
args : model_quirks)
|
||||||
# installing everything first. Default is the empty string so the installed
|
|
||||||
# rule will use udev's default path. Override is in udev/Makefile.am
|
|
||||||
-AC_SUBST(UDEV_TEST_PATH, "")
|
|
||||||
+UDEV_TEST_PATH="${UDEV_DIR}/"
|
|
||||||
+AC_SUBST(UDEV_TEST_PATH)
|
|
||||||
AC_PATH_PROG(SED, [sed])
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile
|
udev_rules_config = configuration_data()
|
||||||
|
-udev_rules_config.set('UDEV_TEST_PATH', '')
|
||||||
|
+udev_rules_config.set('UDEV_TEST_PATH', udev_dir + '/')
|
||||||
|
configure_file(input : 'udev/80-libinput-device-groups.rules.in',
|
||||||
|
output : '80-libinput-device-groups.rules',
|
||||||
|
install : true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user