Archived
1
0
Fork 0

gnu: gr-osmosdr: Add support for BladeRF and IQ balance correction.

* gnu/packages/radio.scm (gr-osmosdr)[inputs]: Add bladerf and gr-iqbal.
  [arguments]: Add 'fix-gnuradio-iqbalance-detection' phase. Use gexp.
This commit is contained in:
Guillaume Le Vaillant 2023-09-30 12:02:07 +02:00
parent 18ee78a999
commit e788923600
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -966,10 +966,12 @@ environment.")
(inputs (inputs
(list airspy (list airspy
airspyhf airspyhf
bladerf
boost boost
fftwf fftwf
gmp gmp
gnuradio gnuradio
gr-iqbal
hackrf hackrf
libsndfile libsndfile
log4cpp log4cpp
@ -981,13 +983,20 @@ environment.")
spdlog spdlog
volk)) volk))
(arguments (arguments
`(#:modules ((guix build cmake-build-system) (list #:modules '((guix build cmake-build-system)
((guix build python-build-system) #:prefix python:) ((guix build python-build-system) #:prefix python:)
(guix build utils)) (guix build utils))
#:imported-modules (,@%cmake-build-system-modules #:imported-modules `(,@%cmake-build-system-modules
(guix build python-build-system)) (guix build python-build-system))
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'fix-gnuradio-iqbalance-detection
(lambda _
(substitute* "CMakeLists.txt"
(("find_package\\(gnuradio-iqbalance PATHS \\$\\{Gnuradio_DIR\\}\\)")
(string-append "find_package(gnuradio-iqbalance PATHS "
#$(this-package-input "gr-iqbal")
"/lib/cmake/gnuradio)")))))
(add-after 'install 'wrap-python (add-after 'install 'wrap-python
(assoc-ref python:%standard-phases 'wrap))))) (assoc-ref python:%standard-phases 'wrap)))))
(synopsis "GNU Radio block for interfacing with various radio hardware") (synopsis "GNU Radio block for interfacing with various radio hardware")