From 31d026d97b63a8afa3dcced7fd9fec77472fda6a Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Thu, 20 Feb 2025 02:58:08 +0100 Subject: [PATCH] libftdi1: Grant seat sessions access to FTDI devices Apply uaccess to the udev rules granting seat sessions access to the devices. Change the rule priority to 60 since they need to be processed before 73-seat-late.rules. uaccess does not conflict with group/mode configurations. Signed-off-by: Felix Singer --- pkgs/by-name/li/libftdi1/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/li/libftdi1/package.nix b/pkgs/by-name/li/libftdi1/package.nix index be4cb1888e45..c625eed3b4fd 100644 --- a/pkgs/by-name/li/libftdi1/package.nix +++ b/pkgs/by-name/li/libftdi1/package.nix @@ -74,11 +74,14 @@ stdenv.mkDerivation rec { postPatch = '' substituteInPlace packages/99-libftdi.rules \ --replace-fail 'GROUP="plugdev"' 'GROUP="ftdi"' + + substituteInPlace packages/99-libftdi.rules \ + --replace-fail 'GROUP="ftdi"' 'GROUP="ftdi", TAG+="uaccess"' ''; postInstall = '' - install -Dm644 ../packages/99-libftdi.rules "$out/etc/udev/rules.d/99-libftdi.rules" + install -Dm644 ../packages/99-libftdi.rules "$out/etc/udev/rules.d/60-libftdi.rules" '' + optionalString docSupport '' cp -r doc/man "$out/share/"