1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2017, 2018, 2019, 2020 Arun Isaac <arunisaac@systemreboot.net>
3 ;;; Copyright © 2019, 2020 Christopher Howard <christopher@librehacker.com>
4 ;;; Copyright © 2019, 2020 Evan Straw <evan.straw99@gmail.com>
5 ;;; Copyright © 2020, 2021 Guillaume Le Vaillant <glv@posteo.net>
6 ;;; Copyright © 2020 Danny Milosavljevic <dannym@scratchpost.org>
7 ;;; Copyright © 2020 Charlie Ritter <chewzerita@posteo.net>
8 ;;; Copyright © 2020, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
9 ;;; Copyright © 2021 João Pedro Simas <jpsimas@gmail.com>
11 ;;; This file is part of GNU Guix.
13 ;;; GNU Guix is free software; you can redistribute it and/or modify it
14 ;;; under the terms of the GNU General Public License as published by
15 ;;; the Free Software Foundation; either version 3 of the License, or (at
16 ;;; your option) any later version.
18 ;;; GNU Guix is distributed in the hope that it will be useful, but
19 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;;; GNU General Public License for more details.
23 ;;; You should have received a copy of the GNU General Public License
24 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
26 (define-module (gnu packages radio)
27 #:use-module ((guix licenses) #:prefix license:)
28 #:use-module (guix packages)
29 #:use-module (guix download)
30 #:use-module (guix git-download)
31 #:use-module (guix utils)
32 #:use-module (gnu packages algebra)
33 #:use-module (gnu packages audio)
34 #:use-module (gnu packages autotools)
35 #:use-module (gnu packages base)
36 #:use-module (gnu packages bash)
37 #:use-module (gnu packages boost)
38 #:use-module (gnu packages check)
39 #:use-module (gnu packages curl)
40 #:use-module (gnu packages databases)
41 #:use-module (gnu packages documentation)
42 #:use-module (gnu packages engineering)
43 #:use-module (gnu packages fltk)
44 #:use-module (gnu packages gcc)
45 #:use-module (gnu packages gd)
46 #:use-module (gnu packages geo)
47 #:use-module (gnu packages gettext)
48 #:use-module (gnu packages ghostscript)
49 #:use-module (gnu packages glib)
50 #:use-module (gnu packages gnome)
51 #:use-module (gnu packages golang)
52 #:use-module (gnu packages gstreamer)
53 #:use-module (gnu packages gtk)
54 #:use-module (gnu packages image)
55 #:use-module (gnu packages javascript)
56 #:use-module (gnu packages libusb)
57 #:use-module (gnu packages linux)
58 #:use-module (gnu packages logging)
59 #:use-module (gnu packages lua)
60 #:use-module (gnu packages maths)
61 #:use-module (gnu packages multiprecision)
62 #:use-module (gnu packages ncurses)
63 #:use-module (gnu packages networking)
64 #:use-module (gnu packages pkg-config)
65 #:use-module (gnu packages pulseaudio)
66 #:use-module (gnu packages python)
67 #:use-module (gnu packages python-science)
68 #:use-module (gnu packages python-xyz)
69 #:use-module (gnu packages qt)
70 #:use-module (gnu packages readline)
71 #:use-module (gnu packages ruby)
72 #:use-module (gnu packages sdl)
73 #:use-module (gnu packages sphinx)
74 #:use-module (gnu packages swig)
75 #:use-module (gnu packages tcl)
76 #:use-module (gnu packages tex)
77 #:use-module (gnu packages texinfo)
78 #:use-module (gnu packages video)
79 #:use-module (gnu packages xiph)
80 #:use-module (gnu packages xml)
81 #:use-module (gnu packages xorg)
82 #:use-module (guix build-system cmake)
83 #:use-module (guix build-system glib-or-gtk)
84 #:use-module (guix build-system gnu)
85 #:use-module (guix build-system go)
86 #:use-module (guix build-system python)
87 #:use-module (guix build-system qt))
89 (define-public liquid-dsp
94 (origin (method git-fetch)
96 (url "https://github.com/jgaeddert/liquid-dsp")
97 (commit (string-append "v" version))))
98 (file-name (git-file-name name version))
100 (base32 "1n6dbg13q8ga5qhg1yiszwly4jj0rxqr6f1xwm9waaly5z493xsd"))))
101 (build-system gnu-build-system)
103 `(("autoconf" ,autoconf)))
107 (home-page "https://liquidsdr.org")
108 (synopsis "Signal processing library for software-defined radios")
110 "Liquid DSP is a @dfn{digital signal processing} (DSP) library designed
111 specifically for software-defined radios on embedded platforms. The aim is to
112 provide a lightweight DSP library that does not rely on a myriad of external
113 dependencies or proprietary and otherwise cumbersome frameworks. All signal
114 processing elements are designed to be flexible, scalable, and dynamic,
115 including filters, filter design, oscillators, modems, synchronizers, complex
116 mathematical operations, and much more.")
117 (license license:expat)))
119 (define-public rtl-sdr
127 (url "https://git.osmocom.org/rtl-sdr/")
129 (file-name (git-file-name name version))
132 "0lmvsnb4xw4hmz6zs0z5ilsah5hjz29g1s0050n59fllskqr3b8k"))))
133 (build-system cmake-build-system)
135 `(("libusb" ,libusb)))
137 `(("pkg-config" ,pkg-config)))
139 `(#:configure-flags '("-DDETACH_KERNEL_DRIVER=ON"
140 "-DINSTALL_UDEV_RULES=ON")
141 #:tests? #f ; No tests
143 (modify-phases %standard-phases
144 (add-after 'unpack 'fix-paths
145 (lambda* (#:key outputs #:allow-other-keys)
146 (substitute* "CMakeLists.txt"
147 (("DESTINATION \"/etc/udev/")
148 (string-append "DESTINATION \""
149 (assoc-ref outputs "out")
152 (home-page "https://osmocom.org/projects/sdr/wiki/rtl-sdr")
153 (synopsis "Software defined radio driver for Realtek RTL2832U")
154 (description "DVB-T dongles based on the Realtek RTL2832U can be used as a
155 cheap software defined radio, since the chip allows transferring the raw I/Q
156 samples to the host. @code{rtl-sdr} provides drivers for this purpose.
158 The default Linux driver managing DVB-T dongles as TV devices doesn't work for
159 SDR purposes and clashes with this package. Therefore you must prevent the
160 kernel from loading it automatically by adding the following line to your
161 system configuration:
164 (kernel-arguments '(\"modprobe.blacklist=dvb_usb_rtl28xxu\"))
167 To install the rtl-sdr udev rules, you must extend 'udev-service-type' with
168 this package. E.g.: @code{(udev-rules-service 'rtl-sdr rtl-sdr)}")
169 (license license:gpl2+)))
178 (uri (string-append "https://trac.chirp.danplanet.com/chirp_daily/daily-"
179 version "/chirp-daily-" version ".tar.gz"))
181 (base32 "092jryb1jn9li6zj243awv6piz1lhghqsm4phrz7j0rgqf76dy4n"))))
182 (build-system python-build-system)
184 `(("python2-libxml2" ,python2-libxml2)
185 ("python2-pygtk" ,python2-pygtk)
186 ("python2-pyserial" ,python2-pyserial)))
188 `(#:python ,python-2))
189 (home-page "https://chirp.danplanet.com")
190 (synopsis "Cross-radio programming tool")
191 (description "Chirp is a cross-radio programming tool. It supports a
192 growing list of radios across several manufacturers and allows transferring of
193 memory contents between them.")
194 (license (list license:gpl3+
195 license:lgpl3+)))) ; chirp/elib_intl.py
197 (define-public aptdec
205 (url "https://github.com/Xerbo/aptdec")
206 (commit (string-append "v" version))))
207 (file-name (git-file-name name version))
210 "1hf0zb51qc6fyhdjxyij1n3vgwnw3cwksc3r11szbhkml14qjnzk"))))
211 (build-system gnu-build-system)
214 ("libsndfile" ,libsndfile)))
219 (if ,(%current-target-system)
220 (string-append (assoc-ref %build-inputs "cross-gcc")
221 "/bin/" ,(%current-target-system) "-gcc")
223 (string-append "PREFIX=" %output)
224 (string-append "RPM_BUILD_ROOT=" %output))
225 #:tests? #f ; no tests
227 (modify-phases %standard-phases
230 (lambda* (#:key outputs #:allow-other-keys)
231 (let ((out (assoc-ref outputs "out")))
232 (install-file "atpdec" (string-append out "/bin")))
234 (home-page "https://github.com/Xerbo/aptdec")
235 (synopsis "NOAA Automatic Picture Transmission (APT) decoder")
236 (description "Aptdec decodes Automatic Picture Transmission (APT) images.
237 These are medium resolution images of the Earth transmitted by, among other
238 satellites, the POES NOAA weather satellite series. These transmissions are
239 on a frequency of 137 MHz. They can be received using an inexpensive antenna
240 and a dedicated receiver.")
241 (license license:gpl2+)))
243 (define-public redsea
250 (url "https://github.com/windytan/redsea")
251 (commit (string-append "v" version))))
252 (file-name (git-file-name name version))
255 "1y96g0ra2krjb2kypm8s5gdfia45yci4f36klsvyzg8d53v5cwhn"))))
256 (build-system gnu-build-system)
259 (modify-phases %standard-phases
260 ;; The configure.ac file does not explicitly link against libiconv
261 ;; except on Mac OS, causing the build to fail. This phase comments
262 ;; out the original AC_SUBST macro (located inside a conditional) and
263 ;; adds an explicit use of it underneath, so that libiconv is always
265 (add-after 'unpack 'patch-libiconv
267 (substitute* "configure.ac"
271 "esac\nAC_SUBST([ICONV], [\"-liconv\"])"))
274 `(("libiconv" ,libiconv)
275 ("libsndfile" ,libsndfile)
276 ("liquid-dsp" ,liquid-dsp)))
278 `(("autoconf" ,autoconf)
279 ("automake" ,automake)))
280 (home-page "https://github.com/windytan/redsea")
281 (synopsis "Lightweight RDS to JSON decoder")
282 (description "redsea is a lightweight command-line @dfn{FM Radio Data
283 System} (FM-RDS) decoder. Redsea can be used with any RTL-SDR USB radio stick
284 with the rtl_fm tool, or any other @dfn{software-defined radio} (SDR) via
285 csdr, for example. It can also decode raw ASCII bitstream, the hex format
286 used by RDS Spy, and audio files containing @dfn{multiplex} signals (MPX).")
287 (license license:expat)))
289 (define-public gnuradio
296 (uri (string-append "https://www.gnuradio.org/releases/gnuradio/"
297 "gnuradio-" version ".tar.xz"))
299 (base32 "1jvm9xd0l2pz1fww4zii6hl7ccnvy256nrf70ljb594n7j9j49ha"))))
300 (build-system cmake-build-system)
302 `(("doxygen" ,doxygen)
303 ("ghostscript" ,ghostscript)
304 ("js-mathjax" ,js-mathjax)
306 ("pkg-config" ,pkg-config)
307 ("pybind11" ,pybind11)
308 ("python-cheetah" ,python-cheetah)
309 ("python-mako" ,python-mako)
310 ("python-pyzmq" ,python-pyzmq)
311 ("python-scipy" ,python-scipy)
312 ("python-sphinx" ,python-sphinx)
313 ("texlive" ,(texlive-union (list texlive-amsfonts
314 texlive-latex-amsmath
315 ;; TODO: Add newunicodechar.
316 texlive-latex-graphics)))
317 ("xorg-server" ,xorg-server-for-tests)))
319 `(("alsa-lib" ,alsa-lib)
330 ("libsndfile" ,libsndfile)
333 ("portaudio" ,portaudio)
335 ("python-click" ,python-click)
336 ("python-click-plugins" ,python-click-plugins)
337 ("python-lxml" ,python-lxml)
338 ("python-numpy" ,python-numpy)
339 ("python-pycairo" ,python-pycairo)
340 ("python-pygobject" ,python-pygobject)
341 ("python-pyqt" ,python-pyqt)
342 ("python-pyyaml" ,python-pyyaml)
349 `(#:modules ((guix build cmake-build-system)
350 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
351 ((guix build python-build-system) #:prefix python:)
354 #:imported-modules (,@%cmake-build-system-modules
355 (guix build glib-or-gtk-build-system)
356 (guix build python-build-system))
358 (list (string-append "-DMATHJAX2_ROOT="
359 (assoc-ref %build-inputs "js-mathjax")
360 "/share/javascript/mathjax"))
362 (modify-phases %standard-phases
363 (add-after 'unpack 'fix-paths
364 (lambda* (#:key inputs #:allow-other-keys)
365 (let ((qwt (assoc-ref inputs "qwt")))
366 (substitute* "cmake/Modules/FindQwt.cmake"
368 (string-append qwt "/include"))
370 (string-append qwt "/lib"))
371 (("qwt6-\\$\\{QWT_QT_VERSION\\}")
373 (substitute* "cmake/Modules/GrPython.cmake"
376 (substitute* '("gr-vocoder/include/gnuradio/vocoder/codec2.h"
377 "gr-vocoder/include/gnuradio/vocoder/freedv_api.h")
381 (add-before 'check 'set-test-environment
382 (lambda* (#:key inputs #:allow-other-keys)
383 (setenv "HOME" "/tmp")
384 (system (string-append (assoc-ref inputs "xorg-server")
386 (setenv "DISPLAY" ":1")
389 (lambda* (#:key tests? parallel-tests? #:allow-other-keys)
390 (invoke "ctest" "-j" (if parallel-tests?
391 (number->string (parallel-job-count))
393 "--output-on-failure"
394 ;;disable broken tests
396 '(;; https://github.com/gnuradio/gnuradio/issues/3871
397 "qa_header_payload_demux"
398 ;; https://github.com/gnuradio/gnuradio/issues/4348
399 "qa_packet_headerparser_b")
401 (add-after 'install 'wrap-python
402 (assoc-ref python:%standard-phases 'wrap))
403 (add-after 'wrap-python 'wrap-glib-or-gtk
404 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))
405 (add-after 'wrap-glib-or-gtk 'wrap-with-GI_TYPELIB_PATH
406 (lambda* (#:key inputs outputs #:allow-other-keys)
407 (let ((out (assoc-ref outputs "out"))
408 (paths (map (match-lambda
409 ((output . directory)
410 (let ((girepodir (string-append
412 "/lib/girepository-1.0")))
413 (if (file-exists? girepodir)
417 (wrap-program (string-append out "/bin/gnuradio-companion")
418 `("GI_TYPELIB_PATH" ":" prefix ,(filter identity paths))))
421 ;; Variables required to find third-party plugins at runtime.
422 (list (search-path-specification
423 (variable "GRC_BLOCKS_PATH")
424 (files '("share/gnuradio/grc/blocks")))
425 (search-path-specification
426 (variable "PYTHONPATH")
427 (files (list (string-append "lib/python"
429 (package-version python))
430 "/site-packages"))))))
431 (synopsis "Toolkit for software-defined radios")
433 "GNU Radio is a development toolkit that provides signal processing blocks
434 to implement software radios. It can be used with external RF hardware to
435 create software-defined radios, or without hardware in a simulation-like
437 (home-page "https://www.gnuradio.org")
438 (license license:gpl3+)))
440 (define-public gnuradio-osmosdr
441 ;; No tag for version supporting Gnuradio 3.9; use commit.
442 (let ((commit "a100eb024c0210b95e4738b6efd836d48225bd03")
445 (name "gnuradio-osmosdr")
446 (version (git-version "0.2.3" revision commit))
451 (url "https://git.osmocom.org/gr-osmosdr")
453 (file-name (git-file-name name version))
455 (base32 "1pk5gnyznfyy510lbqzg9ijcb1fnhmn547n24aiqyrxd6i6vv1ki"))))
456 (build-system cmake-build-system)
458 `(("doxygen" ,doxygen)
459 ("pkg-config" ,pkg-config)
460 ("pybind11" ,pybind11)
462 ("python-mako" ,python-mako)
463 ("python-six" ,python-six)))
468 ("gnuradio" ,gnuradio)
470 ("libsndfile" ,libsndfile)
474 (synopsis "GNU Radio block for interfacing with various radio hardware")
475 (description "This is a block for GNU Radio allowing to use a common API
476 to access different radio hardware.")
477 (home-page "https://osmocom.org/projects/gr-osmosdr/wiki/GrOsmoSDR")
478 (license license:gpl3+))))
480 (define-public libosmo-dsp
488 (url "https://git.osmocom.org/libosmo-dsp")
490 (file-name (git-file-name name version))
492 (base32 "00plihnpym1gkfpflah8il9463qxzm9kx2f07jyvbkszpj8viq5g"))))
493 (build-system gnu-build-system)
495 `(("autoconf" ,autoconf)
496 ("automake" ,automake)
497 ("bash-minimal" ,bash-minimal)
500 ("pkg-config" ,pkg-config)
501 ("texlive" ,(texlive-union (list texlive-amsfonts
502 texlive-latex-amsmath
503 ;; TODO: Add newunicodechar.
504 texlive-latex-graphics)))))
509 (modify-phases %standard-phases
510 (add-after 'unpack 'fix-paths
511 (lambda* (#:key inputs #:allow-other-keys)
512 (substitute* "git-version-gen"
514 (string-append (assoc-ref inputs "bash")
517 (synopsis "DSP primitives for SDR")
519 "This a C-language library for common DSP (Digital Signal Processing)
520 primitives for SDR (Software Defined Radio).")
521 (home-page "https://osmocom.org/projects/libosmo-dsp")
522 (license license:gpl2+)))
524 (define-public gnuradio-iqbalance
525 ;; No tag for version supporting Gnuradio 3.9; use commit.
526 (let ((commit "fbee239a6fb36dd2fb564f6e6a0d393c4bc844db")
529 (name "gnuradio-iqbalance")
530 (version (git-version "0.38.2" revision commit))
535 (url "https://git.osmocom.org/gr-iqbal")
537 (file-name (git-file-name name version))
539 (base32 "12p193ngcs65nd3lynry119nhv40mikamqkw37wdln7lawx3nw7p"))))
540 (build-system cmake-build-system)
542 `(("doxygen" ,doxygen)
543 ("pkg-config" ,pkg-config)
544 ("pybind11" ,pybind11)
546 ("python-numpy" ,python-numpy)
547 ("python-six" ,python-six)))
552 ("gnuradio" ,gnuradio)
553 ("libosmo-dsp" ,libosmo-dsp)
556 (synopsis "GNU Radio block to correct IQ imbalance")
558 "This is a GNU Radio block to correct IQ imbalance in quadrature
559 receivers. It's composed of two main block:
561 @item Fix: Given a phase and amplitude error, it will correct a complex signal.
562 @item Optimize: Attempts to auto-detect the phase and amplitude error to feed
563 to the fix block above.
565 (home-page "https://git.osmocom.org/gr-iqbal/")
566 (license license:gpl3+))))
576 (url "https://github.com/csete/gqrx")
577 (commit (string-append "v" version))))
578 (file-name (git-file-name name version))
580 (base32 "0m4ncydihz4n4i80c252vk3c5v672yab1jv85n6ndn7a92xv3ilq"))))
581 (build-system qt-build-system)
583 `(("pkg-config" ,pkg-config)))
585 `(("alsa-lib" ,alsa-lib)
589 ("gnuradio" ,gnuradio)
590 ("gnuradio-iqbalance" ,gnuradio-iqbalance)
591 ("gnuradio-osmosdr" ,gnuradio-osmosdr)
593 ("libsndfile" ,libsndfile)
595 ("portaudio" ,portaudio)
596 ("pulseaudio" ,pulseaudio)
601 `(#:tests? #f)) ; no tests
602 (synopsis "Software defined radio receiver")
603 (description "Gqrx is a software defined radio (SDR) receiver implemented
604 using GNU Radio and the Qt GUI toolkit.")
605 (home-page "https://gqrx.dk/")
606 (license license:gpl3+)))
608 (define-public fldigi
616 (url "https://git.code.sf.net/p/fldigi/fldigi")
617 (commit (string-append "v" version))))
618 (file-name (git-file-name name version))
620 (base32 "177qnl1bxy46rqwdxizfy2i3mxk5bzz733cp445rfzl7b6yf6zrn"))))
621 (build-system gnu-build-system)
623 `(("autoconf" ,autoconf)
624 ("automake" ,automake)
625 ("gettext" ,gettext-minimal)
626 ("pkg-config" ,pkg-config)))
628 `(("alsa-lib" ,alsa-lib)
632 ("libsamplerate" ,libsamplerate)
636 ("libxfixes" ,libxfixes)
638 ("portaudio" ,portaudio)
639 ("pulseaudio" ,pulseaudio)))
640 (synopsis "Software modem for amateur radio use")
642 "Fldigi is a software modem for amateur radio use. It is a sound card
643 based program that is used for both transmitting and receiving data by
644 connecting the microphone and headphone connections of a computer to some radio
646 (home-page "http://www.w1hkj.com/")
647 (license license:gpl3+)))
657 (url "https://git.code.sf.net/p/fldigi/flrig")
658 (commit (string-append "v" version))))
659 (file-name (git-file-name name version))
661 (base32 "0vxn1wy5b2zfq20k93rfgq34m1nd3mxd74h8l98f90d85fhcqggy"))))
662 (build-system gnu-build-system)
664 `(("autoconf" ,autoconf)
665 ("automake" ,automake)
666 ("pkg-config" ,pkg-config)))
671 ("libxfixes" ,libxfixes)
673 (synopsis "Radio transceiver control program")
675 "Flrig is a transceiver control program for amateur radio use.
676 It provides computer aided control of various radios using a serial
678 (home-page "http://www.w1hkj.com/")
679 (license license:gpl3+)))
689 (url "https://git.code.sf.net/p/fldigi/flamp")
690 (commit (string-append "v" version))))
691 (file-name (git-file-name name version))
693 (base32 "0ll2wbhyh1sb4iqsypwrd118mrgw3vbsdbz442qhk4r6l8kjzblq"))))
694 (build-system gnu-build-system)
696 `(("autoconf" ,autoconf)
697 ("automake" ,automake)
698 ("pkg-config" ,pkg-config)))
703 ("libxfixes" ,libxfixes)
705 (synopsis "Tool for AMP file transfer")
707 "FLAMP is a program for transferring files by radio waves using AMP
708 (Amateur Multicast Protocol).")
709 (home-page "http://www.w1hkj.com/")
710 (license license:gpl3+)))
712 (define-public flwrap
720 (url "https://git.code.sf.net/p/fldigi/flwrap")
721 (commit (string-append "v" version))))
722 (file-name (git-file-name name version))
724 (base32 "0xkhr82smfr7wpb9xl05wf7bz3vi2mr4xkcr2s8v6mblhgsdhqwg"))))
725 (build-system gnu-build-system)
727 `(("autoconf" ,autoconf)
728 ("automake" ,automake)
729 ("pkg-config" ,pkg-config)))
734 ("libxfixes" ,libxfixes)
736 (synopsis "File encapsulation program")
738 "Flwrap is a software utility for amateur radio use. Its purpose is to
739 encapsulate both text and binary files in a way that allows them to be
740 transmitted over any of several digital modes and verified at the receipt end
742 (home-page "http://www.w1hkj.com/")
743 (license license:gpl3+)))
745 (define-public hackrf
746 ;; Using a git commit because there have been many many commits
747 ;; since the relase two years ago, but no sign of a promised
748 ;; release for many months now.
749 (let ((commit "43e6f99fe8543094d18ff3a6550ed2066c398862")
753 (version (git-version "2018.01.1" revision commit))
758 (url "https://github.com/mossmann/hackrf")
760 (file-name (git-file-name name version))
762 (base32 "0avnv693xi0zsnrvkbfn0ln1r3s1iyj0bz7sc3gxay909av0pvbc"))))
763 (build-system cmake-build-system)
766 (list "-DUDEV_RULES_GROUP=dialout"
767 (string-append "-DUDEV_RULES_PATH="
768 (assoc-ref %outputs "out")
769 "/lib/udev/rules.d"))
771 (modify-phases %standard-phases
772 (add-before 'configure 'enter-source-directory
776 (add-after 'install 'delete-static-library
777 (lambda* (#:key outputs #:allow-other-keys)
778 (delete-file (string-append (assoc-ref outputs "out")
781 (add-before 'install-license-files 'leave-source-directory
785 #:tests? #f)) ; no test suite
787 `(("pkg-config" ,pkg-config)))
792 (home-page "https://greatscottgadgets.com/hackrf/")
793 (synopsis "User-space library and utilities for HackRF SDR")
795 "Command line utilities and a C library for controlling the HackRF
796 Software Defined Radio (SDR) over USB. Installing this package installs the
797 userspace hackrf utilities and C library. To install the hackrf udev rules,
798 you must extend 'udev-service-type' with this package. E.g.:
799 @code{(udev-rules-service 'hackrf hackrf #:groups '(\"dialout\"))}.")
800 (license license:gpl2))))
802 (define-public hamlib
810 "https://github.com/Hamlib/Hamlib/releases/download/"
811 version "/hamlib-" version ".tar.gz"))
813 (base32 "0hi3nc1k55mxff05amdv5iwryaz6r3205l24q0bg7l84f53bkm5l"))))
814 (build-system gnu-build-system)
816 `(("doxygen" ,doxygen)
818 ("pkg-config" ,pkg-config)
819 ("python-wrapper" ,python-wrapper)
826 ("readline" ,readline)))
828 `(#:configure-flags '("--disable-static"
830 "--with-python-binding"
832 "--with-xml-support")))
833 (synopsis "Tools and API to control radios")
835 "The Ham Radio Control Library (Hamlib) is a project to provide programs
836 with a consistent Application Programming Interface (API) for controlling the
837 myriad of radios and rotators available to amateur radio and communications
839 (home-page "https://hamlib.github.io/")
840 (license (list license:gpl2+ license:lgpl2.1+))))
843 ;; Fork of hamlib with custom patches used by wsjtx.
846 (name "wsjtx-hamlib")
852 (url "https://git.code.sf.net/u/bsomervi/hamlib.git")
853 (commit (string-append "wsjtx-" version))))
854 (file-name (git-file-name name version))
856 (base32 "0m4yzjcqs7a1w4lghyyckpkiy96jxdjijddxarqr3a37cl2rz23j"))))
858 `(("autoconf" ,autoconf)
859 ("automake" ,automake)
862 ,@(package-native-inputs hamlib)))
864 `(#:configure-flags '("--disable-static"
866 "--with-python-binding"
868 "--with-xml-support")))))
878 (url "https://git.code.sf.net/p/wsjt/wsjtx.git")
879 (commit (string-append "wsjtx-" version))))
880 (file-name (git-file-name name version))
882 (base32 "0mdr4l7zii08615yn7z91spnvnqm5i9390bra9lz3aqyxrsiim91"))))
883 (build-system qt-build-system)
885 `(("asciidoc" ,asciidoc)
886 ("gfortran" ,gfortran)
887 ("pkg-config" ,pkg-config)
889 ("ruby-asciidoctor" ,ruby-asciidoctor)))
894 ("hamlib" ,wsjtx-hamlib)
897 ("qtmultimedia" ,qtmultimedia)
898 ("qtserialport" ,qtserialport)))
900 `(#:tests? #f ; No test suite
902 (modify-phases %standard-phases
903 (add-after 'unpack 'work-around-runtime-bug
905 ;; Some of the programs in this package fail to find symbols
906 ;; in libm at runtime. Adding libm manually at the end of the
907 ;; library lists when linking the programs seems to help.
908 ;; TODO: find exactly what is wrong in the way the programs
910 (substitute* "CMakeLists.txt"
911 (("target_link_libraries \\((.*)\\)" all libs)
912 (string-append "target_link_libraries (" libs " m)")))
914 (synopsis "Weak-signal ham radio communication program")
916 "WSJT-X implements communication protocols or modes called FT4, FT8,
917 JT4, JT9, JT65, QRA64, ISCAT, MSK144, and WSPR, as well as one called Echo for
918 detecting and measuring your own radio signals reflected from the Moon. These
919 modes were all designed for making reliable, confirmed QSOs under extreme
920 weak-signal conditions.")
921 (home-page "https://www.physics.princeton.edu/pulsar/k1jt/wsjtx.html")
922 (license license:gpl3)))
924 (define-public js8call
932 (uri (string-append "http://files.js8call.com/" version
933 "/js8call-" version ".tgz"))
935 (base32 "149sjwc4zg6ckgq26af93p4fxappa4k9dh7rdy67g8ajfjad4cd8"))
936 (modules '((guix build utils)))
939 ;; Delete bundled boost to use the shared one.
940 (delete-file-recursively "boost")
942 (build-system qt-build-system)
944 `(("asciidoc" ,asciidoc)
945 ("gfortran" ,gfortran)
946 ("pkg-config" ,pkg-config)
948 ("ruby-asciidoctor" ,ruby-asciidoctor)))
953 ("hamlib" ,wsjtx-hamlib)
956 ("qtmultimedia" ,qtmultimedia)
957 ("qtserialport" ,qtserialport)))
959 `(#:tests? #f ; No test suite
961 (modify-phases %standard-phases
962 (add-after 'unpack 'fix-paths
963 (lambda* (#:key outputs #:allow-other-keys)
964 (substitute* "CMakeLists.txt"
965 (("DESTINATION /usr/share")
966 (string-append "DESTINATION "
967 (assoc-ref outputs "out")
970 (add-after 'fix-paths 'work-around-runtime-bug
972 ;; Some of the programs in this package fail to find symbols
973 ;; in libm at runtime. Adding libm manually at the end of the
974 ;; library lists when linking the programs seems to help.
975 ;; TODO: find exactly what is wrong in the way the programs
977 (substitute* "CMakeLists.txt"
978 (("target_link_libraries \\((.*)\\)" all libs)
979 (string-append "target_link_libraries (" libs " m)")))
981 (add-after 'unpack 'fix-hamlib
983 (substitute* "CMake/Modules/Findhamlib.cmake"
984 (("set \\(ENV\\{PKG_CONFIG_PATH\\}.*\\)")
985 "set (__pc_path $ENV{PKG_CONFIG_PATH})
986 list (APPEND __pc_path \"${__hamlib_pc_path}\")
987 set (ENV{PKG_CONFIG_PATH} \"${__pc_path}\")"))
988 (substitute* "HamlibTransceiver.hpp"
989 (("#ifdef JS8_USE_LEGACY_HAMLIB")
992 (synopsis "Weak-signal ham radio communication program")
994 "JS8Call is a software using the JS8 digital mode (a derivative of the FT8
995 mode) providing weak signal keyboard to keyboard messaging to amateur radio
997 (home-page "http://js8call.com/")
998 (license license:gpl3)))
1000 (define-public xnec2c
1007 (uri (string-append "http://www.5b4az.org/pkg/nec2/xnec2c/xnec2c-"
1008 version ".tar.bz2"))
1010 (base32 "1myvlkfybb2ha8l0h96ca3iz206zzy9z5iizm0sbab2zzp78n1r9"))))
1011 (build-system gnu-build-system)
1013 `(("pkg-config" ,pkg-config)))
1018 (modify-phases %standard-phases
1019 (add-after 'unpack 'fix-makefile
1020 (lambda* (#:key outputs #:allow-other-keys)
1021 (substitute* '("Makefile.am" "Makefile.in")
1022 ;; The DESTDIR variable does not get replaced the prefix
1023 ;; in the final Makefile, so let's do here.
1024 (("\\$\\(DESTDIR\\)/usr")
1025 (assoc-ref outputs "out")))
1027 (add-after 'fix-makefile 'fix-paths
1028 (lambda* (#:key outputs #:allow-other-keys)
1029 ;; Increase the max length of the path to the glade file,
1030 ;; so that the '/gnu/store/...' path can fit in.
1031 (substitute* '("src/shared.c" "src/shared.h")
1032 (("char xnec2c_glade\\[64\\];")
1033 "char xnec2c_glade[256];"))
1034 ;; Fix hard coded references to '/usr/...'.
1035 (substitute* '("src/geom_edit.c" "src/main.c")
1037 (string-append "\"" (assoc-ref outputs "out"))))
1039 (synopsis "Antenna modeling software")
1041 "Xnec2c is a GTK3-based graphical version of nec2c, a translation to the
1042 C language of NEC2, the FORTRAN Numerical Electromagnetics Code commonly used
1043 for antenna simulation and analysis. It can be used to define the geometry of
1044 an antenna, and then plot the radiation pattern or frequency-related data like
1045 gain and standing wave ratio.")
1046 (home-page "http://www.5b4az.org/")
1047 (license license:gpl3+)))
1049 (define-public dump1090
1057 (url "https://github.com/flightaware/dump1090")
1058 (commit (string-append "v" version))))
1059 (file-name (git-file-name name version))
1061 (base32 "1zacsqaqsiapljhzw31dwc4nld2rp98jm3ivkyznrhzk9n156p42"))))
1062 (build-system gnu-build-system)
1064 `(("pkg-config" ,pkg-config)))
1066 `(("libusb" ,libusb)
1067 ("ncurses" ,ncurses)
1068 ("rtl-sdr" ,rtl-sdr)))
1070 `(#:test-target "test"
1072 (list (string-append "CC=" ,(cc-for-target))
1075 (modify-phases %standard-phases
1078 (lambda* (#:key outputs #:allow-other-keys)
1079 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
1080 (install-file "dump1090" bin)
1081 (install-file "view1090" bin)
1083 (synopsis "Mode S decoder for rtl-sdr devices")
1085 "Dump1090 is a Mode S decoder specifically designed for rtl-sdr devices.
1086 It can be used to decode the ADS-B signals that planes emit to indicate
1087 their position, altitude, speed, etc.")
1088 (home-page "https://github.com/flightaware/dump1090")
1089 (license license:gpl2+)))
1091 (define-public rtl-433
1099 (url "https://github.com/merbanan/rtl_433")
1101 (file-name (git-file-name name version))
1103 (base32 "093bxjxkg7yf78wqj5gpijbfa2p05ny09qqsj84kzi1svnzsa369"))))
1104 (build-system cmake-build-system)
1106 `(("pkg-config" ,pkg-config)))
1108 `(("libusb" ,libusb)
1109 ("rtl-sdr" ,rtl-sdr)))
1110 (synopsis "Decoder for radio transmissions in ISM bands")
1112 "This is a generic data receiver, mainly for decoding radio transmissions
1113 from devices on the 433 MHz, 868 MHz, 315 MHz, 345 MHz and 915 MHz ISM bands.")
1114 (home-page "https://github.com/merbanan/rtl_433")
1115 (license license:gpl2+)))
1117 (define-public multimon-ng
1119 (name "multimon-ng")
1125 (url "https://github.com/EliasOenal/multimon-ng")
1127 (file-name (git-file-name name version))
1129 (base32 "01716cfhxfzsab9zjply9giaa4nn4b7rm3p3vizrwi7n253yiwm2"))))
1130 (build-system cmake-build-system)
1132 `(("libx11" ,libx11)
1133 ("pulseaudio" ,pulseaudio)))
1135 '(#:tests? #f)) ; no test suite
1136 (home-page "https://github.com/EliasOenal/multimon-ng")
1137 (synopsis "Decoder for digital radio transmission modes")
1138 (description "Multimon-ng can decode several digital radio transmission
1141 @item POCSAG512, POCSAG1200, POCSAG2400
1144 @item UFSK1200, CLIPFSK, AFSK1200, AFSK2400, AFSK2400_2, AFSK2400_3
1148 @item ZVEI1, ZVEI2, ZVEI3, DZVEI, PZVEI
1149 @item EEA, EIA, CCIR
1153 (license license:gpl2+)))
1155 (define-public nanovna-saver
1157 (name "nanovna-saver")
1163 (url "https://github.com/NanoVNA-Saver/nanovna-saver")
1164 (commit (string-append "v" version))))
1165 (file-name (git-file-name name version))
1167 (base32 "0z83rwpnbbs1n74mx8dgh1d1crp90mannj9vfy161dmy4wzc5kpv"))))
1168 (build-system python-build-system)
1170 `(("python-cython" ,python-cython)))
1172 `(("python-numpy" ,python-numpy)
1173 ("python-pyqt" ,python-pyqt)
1174 ("python-pyserial" ,python-pyserial)
1175 ("python-scipy" ,python-scipy)))
1178 (home-page "https://github.com/NanoVNA-Saver/nanovna-saver")
1179 (synopsis "GUI for NanoVNA devices")
1181 "NanoVNA-Saver is a tool for reading, displaying and saving data from the
1182 NanoVNA vector network analyzers.")
1183 (license license:gpl3+)))
1185 (define-public qsstv
1192 (uri (string-append "http://users.telenet.be/on4qz/qsstv/downloads/"
1193 "qsstv_" version ".tar.gz"))
1195 (base32 "0f9hx6sy418cb23fadll298pqbc5l2lxsdivi4vgqbkvx7sw58zi"))))
1196 (build-system qt-build-system)
1198 `(("pkg-config" ,pkg-config)))
1200 `(("alsa-lib" ,alsa-lib)
1204 ("openjpeg" ,openjpeg)
1205 ("pulseaudio" ,pulseaudio)
1207 ("v4l-utils" ,v4l-utils)))
1209 `(#:tests? #f ; No test suite.
1211 (modify-phases %standard-phases
1213 (lambda* (#:key outputs #:allow-other-keys)
1215 (string-append "PREFIX=" (assoc-ref outputs "out")))
1217 (home-page "http://users.telenet.be/on4qz/qsstv/")
1218 (synopsis "Program for receiving and transmitting SSTV and HAMDRM")
1220 "QSSTV is a program for receiving and transmitting SSTV and HAMDRM
1221 (sometimes called DSSTV). It is compatible with most of MMSSTV and EasyPal.")
1222 (license (list license:gpl2+
1225 (define-public direwolf
1233 (url "https://github.com/wb2osz/direwolf")
1235 (file-name (git-file-name name version))
1237 (base32 "0xmz64m02knbrpasfij4rrq53ksxna5idxwgabcw4n2b1ig7pyx5"))))
1238 (build-system cmake-build-system)
1240 `(("alsa-lib" ,alsa-lib)
1241 ("hamlib" ,hamlib)))
1244 (modify-phases %standard-phases
1245 (add-after 'unpack 'fix-paths
1246 (lambda* (#:key outputs #:allow-other-keys)
1247 (substitute* "conf/CMakeLists.txt"
1248 (("DESTINATION /etc")
1249 (string-append "DESTINATION "
1250 (assoc-ref outputs "out")
1252 (home-page "https://github.com/wb2osz/direwolf")
1253 (synopsis "TNC for Amateur Packet Radio")
1255 "Dire Wolf is a Terminal Node Controller (TNC) for Amateur Packet Radio.
1258 @item APRS GPS tracker,
1260 @item Internet gateway (IGate)
1261 @item APRStt gateway
1263 (license license:gpl2+)))
1272 (uri (string-append "mirror://savannah/aldo/aldo-" version ".tar.bz2"))
1274 (base32 "14lzgldqzbbzydsy1cai3wln3hpyj1yhj8ji3wygyzr616fq9f7i"))))
1275 (build-system gnu-build-system)
1278 (home-page "https://www.nongnu.org/aldo/")
1279 (synopsis "Morse code tutor")
1281 "Aldo is a morse code learning tool providing four type of training
1285 @item Classic exercice,
1287 @item Read from file,
1288 @item Callsign exercice.
1290 (license license:gpl3+)))
1292 (define-public unixcw
1299 (uri (string-append "mirror://sourceforge/unixcw/unixcw-"
1302 (base32 "15wriwv91583kmmyijbzam3dpclzmg4qjyfzjv5f75x9b0gqabxm"))))
1303 (build-system gnu-build-system)
1305 `(("pkg-config" ,pkg-config)))
1307 `(("alsa-lib" ,alsa-lib)
1308 ("ncurses" ,ncurses)
1309 ("pulseaudio" ,pulseaudio)
1310 ("qtbase" ,qtbase)))
1312 `(#:configure-flags '("--disable-static")
1314 (modify-phases %standard-phases
1315 (add-after 'unpack 'fix-paths
1316 (lambda* (#:key inputs #:allow-other-keys)
1317 (substitute* '("configure"
1319 "src/cwcp/Makefile.am"
1320 "src/cwcp/Makefile.in")
1323 (substitute* "src/libcw/libcw_pa.c"
1324 (("libpulse-simple.so" all)
1325 (string-append (assoc-ref inputs "pulseaudio")
1327 (home-page "http://unixcw.sourceforge.net/")
1328 (synopsis "Morse code library and programs")
1330 "@code{unixcw} is a project providing the libcw library and a set of
1331 programs using the library: cw, cwgen, cwcp and xcwcp. The programs are
1332 intended for people who want to learn receiving and sending morse code.")
1333 (license license:gpl2+)))
1335 (define-public gnuais
1343 (url "https://github.com/rubund/gnuais")
1345 (file-name (git-file-name name version))
1347 (base32 "1rik5fdfslszdn3yvj769jzmnv9pirzf76ki33bjjzk7nkabbnlm"))))
1348 (build-system cmake-build-system)
1350 `(("mariadb-dev" ,mariadb "dev")
1351 ("pkg-config" ,pkg-config)))
1353 `(("alsa-lib" ,alsa-lib)
1356 ("libsoup" ,libsoup-minimal)
1357 ("mariadb-lib" ,mariadb "lib")
1358 ("osm-gps-map" ,osm-gps-map)
1359 ("pulseaudio" ,pulseaudio)))
1361 `(#:tests? #f ; No test suite
1363 (modify-phases %standard-phases
1364 (add-after 'unpack 'fix-paths
1365 (lambda* (#:key outputs #:allow-other-keys)
1366 (substitute* "src/cfgfile.c"
1368 (string-append (assoc-ref outputs "out") "/share/"))))))))
1369 (home-page "http://gnuais.sourceforge.net/")
1370 (synopsis "AIS message demodulator and decoder")
1372 "This program contains algorithms to demodulate and decode AIS (Automatic
1373 Identification System) messages sent by ships and coast stations.")
1374 (license license:gpl2+)))
1376 (define-public kappanhang
1384 (url "https://github.com/nonoo/kappanhang")
1385 (commit (string-append "v" version))))
1386 (file-name (git-file-name name version))
1388 (base32 "1ycy8avq5s7zspfi0d9klqcwwkpmcaz742cigd7pmcnbbhspcicp"))))
1389 (build-system go-build-system)
1391 '(#:import-path "github.com/nonoo/kappanhang"
1392 #:install-source? #f))
1394 `(("go-github-com-akosmarton-papipes",go-github-com-akosmarton-papipes)
1395 ("go-github-com-fatih-color" ,go-github-com-fatih-color)
1396 ("go-github-com-google-goterm" ,go-github-com-google-goterm)
1397 ("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty)
1398 ("go-github-com-mesilliac-pulse-simple"
1399 ,go-github-com-mesilliac-pulse-simple)
1400 ("go-github-com-pborman-getopt" ,go-github-com-pborman-getopt)
1401 ("go-go-uber-org-multierr" ,go-go-uber-org-multierr)
1402 ("go-go-uber-org-zap" ,go-go-uber-org-zap)))
1403 (home-page "https://github.com/nonoo/kappanhang")
1404 (synopsis "Client for Icom RS-BA1 server")
1406 "Kappanhang remotely opens audio channels and a serial port to an Icom
1407 RS-BA1 server. The application is mainly developed for connecting to the Icom
1408 IC-705 transceiver, which has built-in WiFi and RS-BA1 server.
1410 Compatible hardware/software:
1412 @item Icom RS-BA1 server software,
1416 (license license:expat)))