From 4d461177a7d0e4e74bab1afd2e798d18d88860a5 Mon Sep 17 00:00:00 2001 From: Rouven Czerwinski Date: Wed, 30 Dec 2020 19:09:43 +0100 Subject: [PATCH] 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. --- pkgs/games/chiaki/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/games/chiaki/default.nix b/pkgs/games/chiaki/default.nix index d703833d452e..22e1c31eff1f 100644 --- a/pkgs/games/chiaki/default.nix +++ b/pkgs/games/chiaki/default.nix @@ -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";