summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Woods <jake@jakewoods.net>2021-09-26 14:06:30 +1000
committerJake Woods <jake@jakewoods.net>2021-10-06 13:19:36 +1100
commitd677a0d3257ffe53546fb18bab7dccb96e5c942d (patch)
tree7c1f01c46714b4fdc08cba5ffb8415ab876648bb
parent14aef06d9b3ad1d07626bdbb16083b83f92dc6c1 (diff)
joycond: unstable-2021-03-27 -> unstable-2021-07-30
This version adds support for "virtual controller" pairing, which lets us use a Pro Controller with Steam and non-steam without collisions. See also: - https://wiki.archlinux.org/title/Gamepad#Using_hid-nintendo_pro_controller_with_Steam_Games_(with_joycond) - https://github.com/ValveSoftware/steam-for-linux/issues/6651#issuecomment-886117867
-rw-r--r--pkgs/os-specific/linux/joycond/default.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/os-specific/linux/joycond/default.nix b/pkgs/os-specific/linux/joycond/default.nix
index a203073b081c..e60e661f0c44 100644
--- a/pkgs/os-specific/linux/joycond/default.nix
+++ b/pkgs/os-specific/linux/joycond/default.nix
@@ -1,14 +1,14 @@
-{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libevdev, udev }:
+{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libevdev, udev, acl }:
stdenv.mkDerivation rec {
pname = "joycond";
- version = "unstable-2021-03-27";
+ version = "unstable-2021-07-30";
src = fetchFromGitHub {
owner = "DanielOgorchock";
repo = "joycond";
- rev = "2d3f553060291f1bfee2e49fc2ca4a768b289df8";
- sha256 = "0dpmwspll9ar3pxg9rgnh224934par8h8bixdz9i2pqqbc3dqib7";
+ rev = "f9a66914622514c13997c2bf7ec20fa98e9dfc1d";
+ sha256 = "sha256-quw7yBHDDZk1+6uHthsfMCej7g5uP0nIAqzvI6436B8=";
};
nativeBuildInputs = [ cmake pkg-config ];
@@ -25,6 +25,9 @@ stdenv.mkDerivation rec {
substituteInPlace $out/etc/systemd/system/joycond.service --replace \
"ExecStart=/usr/bin/joycond" "ExecStart=$out/bin/joycond"
+
+ substituteInPlace $out/etc/udev/rules.d/89-joycond.rules --replace \
+ "/bin/setfacl" "${acl}/bin/setfacl"
'';
meta = with lib; {