Archived
1
0
Fork 0

gnu: rtl-sdr: Fix udev rules.

This is a followup to bcc13ee8a1.

* gnu/packages/radio.scm (rtl-sdr)[arguments]: Add 'fix-udev-rules' phase.
This commit is contained in:
Guillaume Le Vaillant 2022-03-14 15:42:46 +01:00
parent 9ba64d70f1
commit f8aa76ab1f
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -203,7 +203,14 @@ mathematical operations, and much more.")
(("DESTINATION \"/etc/udev/") (("DESTINATION \"/etc/udev/")
(string-append "DESTINATION \"" (string-append "DESTINATION \""
(assoc-ref outputs "out") (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") (home-page "https://osmocom.org/projects/sdr/wiki/rtl-sdr")
(synopsis "Software defined radio driver for Realtek RTL2832U") (synopsis "Software defined radio driver for Realtek RTL2832U")
(description "DVB-T dongles based on the Realtek RTL2832U can be used as a (description "DVB-T dongles based on the Realtek RTL2832U can be used as a