summary refs log tree commit diff
path: root/pkgs/development/libraries/libinput
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-07-08 15:06:33 +0200
committerJan Tojnar <jtojnar@gmail.com>2020-07-15 06:15:16 +0200
commit6cf81102647a1fcfb5f704c82de1b45deffbb9a2 (patch)
tree7cbd92b176bf995521ef9d0d5a5f7b4dbef57a48 /pkgs/development/libraries/libinput
parent7c75c1ed56f208c7556e9dcf38ed13c688c982ca (diff)
downloadnixpkgs-6cf81102647a1fcfb5f704c82de1b45deffbb9a2.tar
nixpkgs-6cf81102647a1fcfb5f704c82de1b45deffbb9a2.tar.gz
nixpkgs-6cf81102647a1fcfb5f704c82de1b45deffbb9a2.tar.bz2
nixpkgs-6cf81102647a1fcfb5f704c82de1b45deffbb9a2.tar.lz
nixpkgs-6cf81102647a1fcfb5f704c82de1b45deffbb9a2.tar.xz
nixpkgs-6cf81102647a1fcfb5f704c82de1b45deffbb9a2.tar.zst
nixpkgs-6cf81102647a1fcfb5f704c82de1b45deffbb9a2.zip
libinput: fix subcommands
Running subcommands like `libinput measure` requires python and some python modules.

I previously added the dependencies in [1] but [2] accidentally moved them to checkInputs so they are not available at runtime by patchShebangs (especially since tests are disabled).

Additionally, the tools were ported from evdev python module to python-libevdev in libinput 1.14, which was missed [3] during upgrade.

Finally, other python modules are needed so let's add them as well.

[1]: https://github.com/NixOS/nixpkgs/pull/51304
[2]: https://github.com/NixOS/nixpkgs/commit/de14f0c6e1247aa48b0d77c4a3390a61e020bebf
[3]: https://github.com/NixOS/nixpkgs/commit/b291f2a9953d48d6edc5c73776db9ba289ccf213
Diffstat (limited to 'pkgs/development/libraries/libinput')
-rw-r--r--pkgs/development/libraries/libinput/default.nix18
1 files changed, 16 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libinput/default.nix b/pkgs/development/libraries/libinput/default.nix
index f490dfbd23a..148d334b946 100644
--- a/pkgs/development/libraries/libinput/default.nix
+++ b/pkgs/development/libraries/libinput/default.nix
@@ -47,10 +47,23 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ pkgconfig meson ninja ]
     ++ optionals documentationSupport [ doxygen graphviz sphinx-build ];
 
-  buildInputs = [ libevdev mtdev libwacom ]
+  buildInputs = [
+    libevdev
+    mtdev
+    libwacom
+    (python3.withPackages (pp: with pp; [
+      pp.libevdev # already in scope
+      pyudev
+      pyyaml
+      setuptools
+    ]))
+  ]
     ++ optionals eventGUISupport [ cairo glib gtk3 ];
 
-  checkInputs = [ (python3.withPackages (pkgs: with pkgs; [ evdev ])) check valgrind ];
+  checkInputs = [
+    check
+    valgrind
+  ];
 
   propagatedBuildInputs = [ udev ];
 
@@ -60,6 +73,7 @@ stdenv.mkDerivation rec {
     patchShebangs tools/helper-copy-and-exec-from-tmp.sh
     patchShebangs test/symbols-leak-test
     patchShebangs test/check-leftover-udev-rules.sh
+    patchShebangs test/helper-copy-and-exec-from-tmp.sh
   '';
 
   doCheck = testsSupport && stdenv.hostPlatform == stdenv.buildPlatform;