rpcs3: add udev rules

+31
+5
pkgs/applications/emulators/rpcs3/99-ds3-controllers.rules
··· 1 + # DualShock 3 over USB 2 + KERNEL=="hidraw", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0268", MODE="0666" 3 + 4 + # DualShock 3 over Bluetooth 5 + KERNEL=="hidraw*", KERNELS=="*054C:0268*", MODE="0666"
+14
pkgs/applications/emulators/rpcs3/99-ds4-controllers.rules
··· 1 + # DualShock 4 over USB 2 + KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="05c4", MODE="0666" 3 + 4 + # DualShock 4 Wireless Adapter over USB 5 + KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0ba0", MODE="0666" 6 + 7 + # DualShock 4 Slim over USB 8 + KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="09cc", MODE="0666" 9 + 10 + # DualShock 4 over Bluetooth 11 + KERNEL=="hidraw*", KERNELS=="*054C:05C4*", MODE="0666" 12 + 13 + # DualShock 4 Slim over Bluetooth 14 + KERNEL=="hidraw*", KERNELS=="*054C:09CC*", MODE="0666"
+5
pkgs/applications/emulators/rpcs3/99-dualsense-controllers.rules
··· 1 + # PS5 DualSense controller over USB hidraw 2 + KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0ce6", MODE="0660", TAG+="uaccess" 3 + 4 + # PS5 DualSense controller over bluetooth hidraw 5 + KERNEL=="hidraw*", KERNELS=="*054C:0CE6*", MODE="0660", TAG+="uaccess"
+7
pkgs/applications/emulators/rpcs3/default.nix
··· 70 70 ++ lib.optional alsaSupport alsa-lib 71 71 ++ lib.optional waylandSupport wayland; 72 72 73 + postInstall = '' 74 + # Taken from https://wiki.rpcs3.net/index.php?title=Help:Controller_Configuration 75 + install -D ${./99-ds3-controllers.rules} $out/etc/udev/rules.d/99-ds3-controllers.rules 76 + install -D ${./99-ds4-controllers.rules} $out/etc/udev/rules.d/99-ds4-controllers.rules 77 + install -D ${./99-dualsense-controllers.rules} $out/etc/udev/rules.d/99-dualsense-controllers.rules 78 + ''; 79 + 73 80 meta = with lib; { 74 81 description = "PS3 emulator/debugger"; 75 82 homepage = "https://rpcs3.net/";