Merge pull request #216815 from R-VdP/flashrom-udev-rules

flashrom: use a udev uaccess tag instead of introducing a custom flashrom group
This commit is contained in:
Franz Pletz 2023-02-21 11:41:53 +01:00 committed by GitHub
commit 0e6e15e124
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -22,6 +22,5 @@ in
config = mkIf cfg.enable {
services.udev.packages = [ cfg.package ];
environment.systemPackages = [ cfg.package ];
users.groups.flashrom = { };
};
}

View File

@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace util/flashrom_udev.rules \
--replace "plugdev" "flashrom"
--replace 'GROUP="plugdev"' 'TAG+="uaccess", TAG+="udev-acl"'
'';
makeFlags = [ "PREFIX=$(out)" "libinstall" ]