gnu: rfcat: Improve style.

* gnu/packages/radio.scm (rfcat)[arguments]: Use gexp.
This commit is contained in:
Guillaume Le Vaillant 2022-12-14 18:21:22 +01:00
parent c50e340707
commit e7b2433484
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -2518,17 +2518,17 @@ (define-public rfcat
python-pyside-2
python-pyusb))
(arguments
`(#:tests? #f ; Tests want to use a serial port
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-permissions
(lambda _
(make-file-writable "rflib/rflib_version.py")))
(add-after 'install 'install-udev-rules
(lambda* (#:key outputs #:allow-other-keys)
(install-file "etc/udev/rules.d/20-rfcat.rules"
(string-append (assoc-ref outputs "out")
"/lib/udev/rules.d")))))))
(list
#:tests? #f ; Tests want to use a serial port
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-permissions
(lambda _
(make-file-writable "rflib/rflib_version.py")))
(add-after 'install 'install-udev-rules
(lambda* _
(install-file "etc/udev/rules.d/20-rfcat.rules"
(string-append #$output "/lib/udev/rules.d")))))))
(home-page "https://github.com/atlas0fd00m/rfcat")
(synopsis "Program to control some radio dongles")
(description