gnu: Add wl-clipboard.
[jackhill/guix/guix.git] / gnu / packages / ham-radio.scm
CommitLineData
c5361b7c 1;;; GNU Guix --- Functional package management for GNU
e200de54 2;;; Copyright © 2017, 2018 Arun Isaac <arunisaac@systemreboot.net>
c5361b7c
AI
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages ham-radio)
20 #:use-module ((guix licenses) #:prefix license:)
21 #:use-module (guix packages)
22 #:use-module (guix download)
e200de54 23 #:use-module (gnu packages gtk)
c5361b7c
AI
24 #:use-module (gnu packages libusb)
25 #:use-module (gnu packages pkg-config)
e200de54
AI
26 #:use-module (gnu packages python)
27 #:use-module (gnu packages xml)
28 #:use-module (guix build-system cmake)
29 #:use-module (guix build-system python))
c5361b7c
AI
30
31(define-public rtl-sdr
32 (package
33 (name "rtl-sdr")
34 (version "0.5.3")
35 (source
36 (origin
37 (method url-fetch)
38 (uri (string-append "https://cgit.osmocom.org/rtl-sdr/snapshot/rtl-sdr-"
39 version ".tar.xz"))
40 (sha256
41 (base32
42 "08awca3v28sa4lxym4r81pzf0la0j86wbmpyhv3xd53an9gkpjy9"))))
43 (build-system cmake-build-system)
44 (inputs
45 `(("libusb" ,libusb)))
46 (native-inputs
47 `(("pkg-config" ,pkg-config)))
48 (arguments
49 `(#:configure-flags '("-DDETACH_KERNEL_DRIVER=ON")
50 #:tests? #f)) ; No tests
51 (home-page "https://osmocom.org/projects/sdr/wiki/rtl-sdr")
52 (synopsis "Software defined radio driver for Realtek RTL2832U")
53 (description "DVB-T dongles based on the Realtek RTL2832U can be used as a
54cheap software defined radio, since the chip allows transferring the raw I/Q
55samples to the host. @code{rtl-sdr} provides drivers for this purpose.")
56 (license license:gpl2+)))
e200de54
AI
57
58(define-public chirp
59 (package
60 (name "chirp")
61 (version "20181205")
62 (source
63 (origin
64 (method url-fetch)
65 (uri (string-append "https://trac.chirp.danplanet.com/chirp_daily/daily-"
66 version "/chirp-daily-" version ".tar.gz"))
67 (sha256
68 (base32
69 "1cp280b95j39xaxs50zn55jigg7pyfpm9n098hmsyxrplqn8z43c"))))
70 (build-system python-build-system)
71 (inputs
72 `(("python2-libxml2" ,python2-libxml2)
73 ("python2-pygtk" ,python2-pygtk)
74 ("python2-pyserial" ,python2-pyserial)))
75 (arguments
76 `(#:python ,python-2))
77 (home-page "https://chirp.danplanet.com")
78 (synopsis "Cross-radio programming tool")
79 (description "Chirp is a cross-radio programming tool. It supports a
80growing list of radios across several manufacturers and allows transferring of
81memory contents between them.")
82 (license (list license:gpl3+
83 license:lgpl3+)))) ; chirp/elib_intl.py