Commit | Line | Data |
---|---|---|
c5361b7c AI |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net> | |
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) | |
23 | #:use-module (gnu packages libusb) | |
24 | #:use-module (gnu packages pkg-config) | |
25 | #:use-module (guix build-system cmake)) | |
26 | ||
27 | (define-public rtl-sdr | |
28 | (package | |
29 | (name "rtl-sdr") | |
30 | (version "0.5.3") | |
31 | (source | |
32 | (origin | |
33 | (method url-fetch) | |
34 | (uri (string-append "https://cgit.osmocom.org/rtl-sdr/snapshot/rtl-sdr-" | |
35 | version ".tar.xz")) | |
36 | (sha256 | |
37 | (base32 | |
38 | "08awca3v28sa4lxym4r81pzf0la0j86wbmpyhv3xd53an9gkpjy9")))) | |
39 | (build-system cmake-build-system) | |
40 | (inputs | |
41 | `(("libusb" ,libusb))) | |
42 | (native-inputs | |
43 | `(("pkg-config" ,pkg-config))) | |
44 | (arguments | |
45 | `(#:configure-flags '("-DDETACH_KERNEL_DRIVER=ON") | |
46 | #:tests? #f)) ; No tests | |
47 | (home-page "https://osmocom.org/projects/sdr/wiki/rtl-sdr") | |
48 | (synopsis "Software defined radio driver for Realtek RTL2832U") | |
49 | (description "DVB-T dongles based on the Realtek RTL2832U can be used as a | |
50 | cheap software defined radio, since the chip allows transferring the raw I/Q | |
51 | samples to the host. @code{rtl-sdr} provides drivers for this purpose.") | |
52 | (license license:gpl2+))) |