New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libinput: Fix commands #92715
libinput: Fix commands #92715
Conversation
44c8228
to
f1c9459
Compare
@matthewbauer |
My bad! Yeah the issue was it didn't cross compile and it looked like it was just used for tests (which are disabled in cross). But fixing native should take priority over that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the following
❯ sudo ./result-bin/bin/libinput measure touchpad-tap
Touchpad: /dev/input/event15
Ready for recording data.
Tap the touchpad multiple times with a single finger only.
For useful data we recommend at least 20 taps.
Ctrl+C to exit
Touch sequences detected: 20
^C
Time:
Max delta: 96ms
Min delta: 55ms
Average delta: 71ms
Median delta: 69ms
90th percentile: 91ms
95th percentile: 96ms
No issues.
Looks like it fails on aarch64:
https://gitlab.freedesktop.org/libevdev/python-libevdev/-/blob/0.9/test/test_clib.py#L102-108 Edit: opened https://gitlab.freedesktop.org/libevdev/python-libevdev/-/issues/9 |
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]: NixOS#51304 [2]: NixOS@de14f0c [3]: NixOS@b291f2a
It is not linked against so there is no need to include it in build inputs, much less propagate it. This removes systemd.dev from the runtime closure of packages using pyudev.
3274bee
to
f83c9a7
Compare
@GrahamcOfBorg build python3.pkgs.libevdev |
@worldofpeace wupps, accidentally clicked a button (no way to undo), sorry for the inconvenience and ignore the request :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Motivation for this change
Running subcommands like
libinput measure
requires python and some python modules.I previously added the dependencies in #51304 but de14f0c 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 during upgrade.
Finally, other python modules are needed so let's add them as well.
Closure size
Packages typically depend on the
out
output, so their runtime closure should not be affected by the increase inbin
.Fixes: #48252
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)