From dae9d1fa3ad6407ac0cc66362e6c023e0ccce19c Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Wed, 19 Feb 2025 20:42:16 +0100 Subject: [PATCH] libjaylink: Grant read-write access to members of jlink group It's unusual to use the plugdev group in NixOS. So instead, give access to users in the jlink group. It does not conflict with the uaccess tag, which grants access to seat sessions. Signed-off-by: Felix Singer --- nixos/doc/manual/release-notes/rl-2505.section.md | 2 ++ pkgs/by-name/li/libjaylink/package.nix | 3 +++ 2 files changed, 5 insertions(+) diff --git a/nixos/doc/manual/release-notes/rl-2505.section.md b/nixos/doc/manual/release-notes/rl-2505.section.md index 4ca0e6bbf095..745044d9d546 100644 --- a/nixos/doc/manual/release-notes/rl-2505.section.md +++ b/nixos/doc/manual/release-notes/rl-2505.section.md @@ -197,6 +197,8 @@ - rename package `wtf` to `wtfutil`. +- The udev rules of the libjaylink package require users to be in the `jlink` instead of `plugdev` group now, since the `plugdev` group is very uncommon for NixOS. Alternatively, access is granted to seat sessions. + - `python3Packages.beancount` was updated to 3.1.0. Previous major version remains available as `python3Packages.beancount_2`. - `binwalk` was updated to 3.1.0, which has been rewritten in rust. The python module is no longer available. diff --git a/pkgs/by-name/li/libjaylink/package.nix b/pkgs/by-name/li/libjaylink/package.nix index 0ca4aa2c01ea..83094426194d 100644 --- a/pkgs/by-name/li/libjaylink/package.nix +++ b/pkgs/by-name/li/libjaylink/package.nix @@ -28,6 +28,9 @@ stdenv.mkDerivation rec { postPatch = '' patchShebangs autogen.sh + + substituteInPlace contrib/60-libjaylink.rules \ + --replace-fail 'GROUP="plugdev"' 'GROUP="jlink"' ''; postInstall = ''