From ee7296ff478fcb79c7d973bff19fa1fc1d78d44e Mon Sep 17 00:00:00 2001 From: Guillaume Le Vaillant Date: Sat, 30 Sep 2023 11:17:40 +0200 Subject: gnu: Add bladerf. * gnu/packages/radio.scm (bladerf): New variable. --- gnu/packages/radio.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'gnu/packages/radio.scm') diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm index 2e4e9db4cc..58e1895799 100644 --- a/gnu/packages/radio.scm +++ b/gnu/packages/radio.scm @@ -69,10 +69,12 @@ #:use-module (gnu packages image) #:use-module (gnu packages image-processing) #:use-module (gnu packages javascript) + #:use-module (gnu packages libedit) #:use-module (gnu packages libusb) #:use-module (gnu packages linux) #:use-module (gnu packages logging) #:use-module (gnu packages lua) + #:use-module (gnu packages man) #:use-module (gnu packages maths) #:use-module (gnu packages mp3) #:use-module (gnu packages multiprecision) @@ -1416,6 +1418,43 @@ you must extend 'udev-service-type' with this package. E.g.: @code{(udev-rules-service 'hackrf hackrf #:groups '(\"dialout\"))}.") (license license:gpl2))) +(define-public bladerf + (package + (name "bladerf") + (version "2023.02") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Nuand/bladeRF") + (commit version) + (recursive? #t))) + (file-name (git-file-name name version)) + (sha256 + (base32 "038v9qdmrwx9mxsrq4l36bap0bsypyg4i8hs7l7srv4b0c2s7ynp")))) + (build-system cmake-build-system) + (native-inputs (list doxygen help2man pkg-config)) + (inputs (list libedit libusb)) + (arguments + (list #:configure-flags #~(list "-DTAGGED_RELEASE=ON" + (string-append "-DUDEV_RULES_PATH=" + #$output + "/lib/udev/rules.d") + "-DBLADERF_GROUP=dialout" + "-DBUILD_DOCUMENTATION=ON") + #:tests? #f)) ; No test suite + (home-page "https://www.nuand.com/") + (synopsis "User-space library and utilities for BladeRF SDR") + (description + "This package contains a library and command line utilities for +controlling the BladeRF Software Defined Radio (SDR) over USB. To install the +bladerf udev rules, you must extend 'udev-service-type' with this package. +E.g.: @code{(udev-rules-service 'bladerf bladerf)}.") + (license (list license:bsd-3 + license:expat + license:gpl2+ + license:lgpl2.1+)))) + (define-public hamlib (package (name "hamlib") -- cgit 1.4.1