chiaki: add DualShock4 touchpad support

Chiaki supports the touchpad on DualShock4 controllers when they are
connected via USB and requires libevdev & udev for this. Add both
libraries if chiaki is to be built for a Linux host.
This commit is contained in:
Rouven Czerwinski 2020-12-30 19:09:43 +01:00
parent 536a40c3d7
commit 4d461177a7

View file

@ -1,7 +1,8 @@
{ lib, mkDerivation, fetchgit
, cmake, ffmpeg, libopus, qtbase, qtmultimedia, qtsvg, pkg-config, protobuf
, python3Packages, SDL2 }:
, cmake, ffmpeg, libevdev, libopus, udev, qtbase, qtmultimedia
, qtsvg , pkg-config, protobuf , python3Packages, SDL2, stdenv }:
with stdenv.lib;
mkDerivation rec {
pname = "chiaki";
version = "2.0.1";
@ -16,7 +17,8 @@ mkDerivation rec {
nativeBuildInputs = [
cmake pkg-config protobuf python3Packages.python python3Packages.protobuf
];
buildInputs = [ ffmpeg libopus qtbase qtmultimedia qtsvg protobuf SDL2 ];
buildInputs = [ ffmpeg libopus qtbase qtmultimedia qtsvg protobuf SDL2 ]
++ optionals stdenv.hostPlatform.isLinux [ libevdev udev];
doCheck = true;
installCheckPhase = "$out/bin/chiaki --help";