Subject: [PATCH v3 2/4] gnu: Add libad9361

From: Rutherther <[email-masked]>
Date: Sun, 20 Apr 2025 18:47:19 +0200

This is a dependency of sdr++ for supporting PlutoSDR.

* gnu/packages/radio.scm (libad9361): New variable.

Change-Id: I1e8bca9ab978b3650ae8227e5e4391ea9d2a925e
---
 gnu/packages/radio.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index 283b69bfd7..03560eaf3f 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -260,6 +260,32 @@ (define-public libiio
 on an embedded Linux target (local mode), or use libiio to communicate remotely to that same target
 from a host Linux, Windows or MAC over USB or Ethernet or Serial.")))
 
+(define-public libad9361
+  (package
+    (name "libad9361")
+    (version "0.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/analogdevicesinc/libad9361-iio")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1inv39xfg8gqz1v7k1n2a7p9zzlb6gq98gcnnpdcr9fa5alvmvpm"))))
+    (inputs
+     (list libiio))
+    (build-system cmake-build-system)
+    (license (list
+              license:lgpl2.1
+              license:gpl2))
+    (home-page "https://github.com/analogdevicesinc/libad9361-iio")
+    (synopsis
+     "IIO AD9361 library for filter design and handling, multi-chip sync, etc. ")
+    (description "This is a simple library used for userspace,
+which manages multi-chip sync (on platforms (FMCOMMS5) where multiple AD9361 devices are use)
+can create AD9361 specific FIR filters on the fly.")))
+
 (define-public liquid-dsp
   (package
     (name "liquid-dsp")
-- 
2.49.0