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:
parent
536a40c3d7
commit
4d461177a7
@ -1,7 +1,8 @@
|
|||||||
{ lib, mkDerivation, fetchgit
|
{ lib, mkDerivation, fetchgit
|
||||||
, cmake, ffmpeg, libopus, qtbase, qtmultimedia, qtsvg, pkg-config, protobuf
|
, cmake, ffmpeg, libevdev, libopus, udev, qtbase, qtmultimedia
|
||||||
, python3Packages, SDL2 }:
|
, qtsvg , pkg-config, protobuf , python3Packages, SDL2, stdenv }:
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "chiaki";
|
pname = "chiaki";
|
||||||
version = "2.0.1";
|
version = "2.0.1";
|
||||||
@ -16,7 +17,8 @@ mkDerivation rec {
|
|||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake pkg-config protobuf python3Packages.python python3Packages.protobuf
|
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;
|
doCheck = true;
|
||||||
installCheckPhase = "$out/bin/chiaki --help";
|
installCheckPhase = "$out/bin/chiaki --help";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user