gnu: Add airspyhf.

* gnu/packages/radio.scm (airspyhf): New variable.
This commit is contained in:
Guillaume Le Vaillant 2021-04-10 11:46:12 +02:00
parent 59134f1e02
commit 5b49626bc2
No known key found for this signature in database
GPG Key ID: 6BE8208ADF21FE3F

View File

@ -172,6 +172,46 @@ To install the rtl-sdr udev rules, you must extend 'udev-service-type' with
this package. E.g.: @code{(udev-rules-service 'rtl-sdr rtl-sdr)}")
(license license:gpl2+)))
(define-public airspyhf
(package
(name "airspyhf")
(version "1.6.8")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/airspy/airspyhf")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "0n699i5a9fzzhf80fcjlqq6p2a013rzlwmwv4nmwfafy6c8cr924"))))
(build-system cmake-build-system)
(native-inputs
`(("pkg-config" ,pkg-config)))
(inputs
`(("libusb" ,libusb)))
(arguments
'(#:configure-flags '("-DINSTALL_UDEV_RULES=ON")
#:tests? #f ; No tests
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-paths
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "tools/CMakeLists.txt"
(("DESTINATION \"/etc/udev/")
(string-append "DESTINATION \""
(assoc-ref outputs "out")
"/lib/udev/"))))))))
(home-page "https://github.com/airspy/airspyhf")
(synopsis "Software defined radio driver for Airspy HF+")
(description
"This package provides the driver and utilities for controlling the Airspy
HF+ Software Defined Radio (SDR) over USB.
To install the airspyhf udev rules, you must extend @code{udev-service-type}
with this package. E.g.: @code{(udev-rules-service 'airspyhf airspyhf)}")
(license license:bsd-3)))
(define-public chirp
(package
(name "chirp")