libftdi1: Replace plugdev with ftdi group in udev rules
It's unusual and discouraged to use the plugdev group in NixOS. Instead, grant read-write access to members from the ftdi group. Signed-off-by: Felix Singer <felixsinger@posteo.net>
This commit is contained in:
committed by
Bjørn Forsman
parent
6b2f1a8198
commit
25087e4125
@@ -71,10 +71,14 @@ stdenv.mkDerivation rec {
|
||||
|
||||
propagatedBuildInputs = [ libusb1 ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace packages/99-libftdi.rules \
|
||||
--replace-fail 'GROUP="plugdev"' 'GROUP="ftdi"'
|
||||
'';
|
||||
|
||||
postInstall =
|
||||
''
|
||||
mkdir -p "$out/etc/udev/rules.d/"
|
||||
cp ../packages/99-libftdi.rules "$out/etc/udev/rules.d/"
|
||||
install -Dm644 ../packages/99-libftdi.rules "$out/etc/udev/rules.d/99-libftdi.rules"
|
||||
''
|
||||
+ optionalString docSupport ''
|
||||
cp -r doc/man "$out/share/"
|
||||
|
||||
Reference in New Issue
Block a user