mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
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:
parent
25087e4125
commit
31d026d97b
1 changed files with 4 additions and 1 deletions
|
@ -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/"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue