diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-04-28 16:24:46 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-04-28 16:24:46 +0200 |
commit | 284fa7264963acc5d114ef5d54c347126b1654ba (patch) | |
tree | 3e5360fcc81b6d0dce76a65aca60cf8528f2931f /gnu/packages/radio.scm | |
parent | 12c9da35389dfba86ae0d863132a6b2c4374205a (diff) | |
parent | 882cacc1bb5be0df334dd7ce55b385a3a1678728 (diff) | |
download | guix-patches-284fa7264963acc5d114ef5d54c347126b1654ba.tar guix-patches-284fa7264963acc5d114ef5d54c347126b1654ba.tar.gz |
Merge branch 'master' into staging
Diffstat (limited to 'gnu/packages/radio.scm')
-rw-r--r-- | gnu/packages/radio.scm | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm index dfc274a1de..aa0406b324 100644 --- a/gnu/packages/radio.scm +++ b/gnu/packages/radio.scm @@ -329,6 +329,59 @@ defined radio hardware devices with a common API.") SoapySDR library.") (license license:expat))) +(define-public soapyaudio + ;; Use commit directly because fixes for recent hamlib are not in the latest + ;; release (0.1.1). + (let ((commit "79129c9bb98deca3294c05108fdc545579af6418") + (revision "0")) + (package + (name "soapyaudio") + (version (git-version "0.1.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pothosware/SoapyAudio") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0mrcnd3k0j599x3k93dkpi5zgr0l7nblz8am9f0s6zs3dikfncvb")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Delete bundled rtaudio. + (delete-file-recursively "RtAudio"))))) + (build-system cmake-build-system) + (native-inputs + (list pkg-config)) + (inputs + (list alsa-lib + hamlib + jack-1 + libusb + pulseaudio + rtaudio + soapysdr)) + (arguments + `(#:configure-flags '("-DUSE_HAMLIB=ON") + #:tests? #f ; No test suite + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-rtaudio-detection + ;; CMake only finds rtaudio if it looks for it before looking + ;; for hamlib, not sure why... + (lambda _ + (substitute* "CMakeLists.txt" + (("option\\(USE_HAMLIB OFF" all) + (string-append "find_package(RtAudio)\n" all)))))))) + (home-page "https://github.com/pothosware/SoapyAudio/wiki") + (synopsis "SoapySDR module for audio devices") + (description + "This package provides support for sound card devices to the SoapySDR +library. It also adds hamlib support, which provides basic gain and frequency +controls for certain tuners which may be paired with an audio device.") + (license license:expat)))) + (define-public soapyhackrf (package (name "soapyhackrf") |