summary refs log tree commit diff
path: root/gnu/packages/radio.scm
diff options
context:
space:
mode:
authorGuillaume Le Vaillant <glv@posteo.net>2021-04-10 13:33:53 +0200
committerGuillaume Le Vaillant <glv@posteo.net>2021-04-10 13:33:53 +0200
commit5eded9b52dc4e92c652364cf359d022812817505 (patch)
tree1cfbae82d5b683e00221485d3e0d7cd6d6521cca /gnu/packages/radio.scm
parent1d568a459832a02995c4ba7be32107949b3b6fc0 (diff)
downloadguix-5eded9b52dc4e92c652364cf359d022812817505.tar.gz
gnu: airspyhf: Fix udev rules.
* gnu/packages/radio.scm (airspyhf)[arguments]: Add 'fix-udev-rules' phase.
Diffstat (limited to 'gnu/packages/radio.scm')
-rw-r--r--gnu/packages/radio.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index 0e67bf2658..e6d5ef0203 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -201,7 +201,14 @@ this package.  E.g.: @code{(udev-rules-service 'rtl-sdr rtl-sdr)}")
                (("DESTINATION \"/etc/udev/")
                 (string-append "DESTINATION \""
                                (assoc-ref outputs "out")
-                               "/lib/udev/"))))))))
+                               "/lib/udev/")))))
+         (add-after 'fix-paths 'fix-udev-rules
+           (lambda _
+             (substitute* "tools/52-airspyhf.rules"
+               ;; The plugdev group does not exist; use dialout as in
+               ;; the hackrf package.
+               (("GROUP=\"plugdev\"")
+                "GROUP=\"dialout\"")))))))
     (home-page "https://github.com/airspy/airspyhf")
     (synopsis "Software defined radio driver for Airspy HF+")
     (description