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 <felixsinger@posteo.net>
This commit is contained in:
committed by
Bjørn Forsman
parent
25087e4125
commit
31d026d97b
@@ -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/"
|
||||
|
||||
Reference in New Issue
Block a user