diff options
author | Guillaume Le Vaillant <glv@posteo.net> | 2023-07-22 09:21:16 +0200 |
---|---|---|
committer | Guillaume Le Vaillant <glv@posteo.net> | 2023-07-22 09:21:16 +0200 |
commit | 3a05604a57671682943253781ac0d9f637809660 (patch) | |
tree | a3ebfeea3439ac94ea0395702d38e7aa9091a619 /gnu | |
parent | 8505bf9f36909f1aa7253d8735dacc84914bcc78 (diff) | |
download | guix-3a05604a57671682943253781ac0d9f637809660.tar.gz guix-3a05604a57671682943253781ac0d9f637809660.zip |
gnu: Add airspy.
* gnu/packages/radio.scm (airspy): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/radio.scm | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm index 235b648a52..7efbc93d7c 100644 --- a/gnu/packages/radio.scm +++ b/gnu/packages/radio.scm @@ -272,6 +272,57 @@ To install the rtl-sdr udev rules, you must extend 'udev-service-type' with this package. E.g.: @code{(udev-rules-service 'rtl-sdr rtl-sdr)}") (license license:gpl2+)))) +(define-public airspy + (let ((commit "6f92f47146aa8a8fce59b60927cf8c53da6851b3") + (revision "1")) + (package + (name "airspy") + (version (git-version "1.0.10" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/airspy/airspyone_host") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0y2yz8agp4v36z1766hi92msgs35yvy32brfcscijxdkgswdgbkd")))) + (build-system cmake-build-system) + (native-inputs + (list pkg-config)) + (inputs + (list libusb)) + (arguments + (list #:configure-flags #~(list "-DINSTALL_UDEV_RULES=ON") + #:tests? #f ; No tests + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-paths + (lambda _ + (substitute* "airspy-tools/CMakeLists.txt" + (("DESTINATION \"/etc/udev/") + (string-append "DESTINATION \"" + #$output + "/lib/udev/"))))) + (add-after 'fix-paths 'fix-udev-rules + (lambda _ + (substitute* "airspy-tools/52-airspy.rules" + ;; The plugdev group does not exist; use dialout as in + ;; the hackrf package. + (("GROUP=\"plugdev\"") + "GROUP=\"dialout\""))))))) + (home-page "https://github.com/airspy/airspyone_host") + (synopsis "Software defined radio driver for Airspy") + (description + "This package provides the driver and utilities for controlling the +Airspy Software Defined Radio (SDR) over USB. + +To install the airspy udev rules, you must extend @code{udev-service-type} +with this package. E.g.: @code{(udev-rules-service 'airspy airspy)}") + (license (list license:bsd-3 + license:expat + license:gpl2+))))) + (define-public airspyhf (let ((commit "40836c59d35d989fe00ac12ef774df736a36c6e4") (revision "1")) |