From f8aa76ab1fd3b4c9c87d2e68a811477adc844217 Mon Sep 17 00:00:00 2001 From: Guillaume Le Vaillant Date: Mon, 14 Mar 2022 15:42:46 +0100 Subject: gnu: rtl-sdr: Fix udev rules. This is a followup to bcc13ee8a19b09ae880ebb18e5a0cc75a9219a14. * gnu/packages/radio.scm (rtl-sdr)[arguments]: Add 'fix-udev-rules' phase. --- gnu/packages/radio.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gnu/packages') diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm index 477b094d75..dfc274a1de 100644 --- a/gnu/packages/radio.scm +++ b/gnu/packages/radio.scm @@ -203,7 +203,14 @@ mathematical operations, and much more.") (("DESTINATION \"/etc/udev/") (string-append "DESTINATION \"" (assoc-ref outputs "out") - "/lib/udev/")))))))) + "/lib/udev/"))))) + (add-after 'fix-paths 'fix-udev-rules + (lambda _ + (substitute* "rtl-sdr.rules" + ;; The plugdev group does not exist; use dialout as in + ;; the hackrf package. + (("GROUP=\"plugdev\"") + "GROUP=\"dialout\""))))))) (home-page "https://osmocom.org/projects/sdr/wiki/rtl-sdr") (synopsis "Software defined radio driver for Realtek RTL2832U") (description "DVB-T dongles based on the Realtek RTL2832U can be used as a -- cgit v1.2.3