Subject: [PATCH v2 2/3] gnu: Add volk-gnsssdr.

From: Andy Tai <[email-masked]>
Date: Sun, 16 Jun 2024 21:53:59 -0700

* gnu/packages/radio.scm (volk-gnsssdr): New variable.

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

diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index daab0f4be0..89e411d6d4 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -40,6 +40,7 @@ (define-module (gnu packages radio)
   #:use-module (gnu packages)
   #:use-module (gnu packages admin)
   #:use-module (gnu packages algebra)
+  #:use-module (gnu packages assembly)
   #:use-module (gnu packages astronomy)
   #:use-module (gnu packages audio)
   #:use-module (gnu packages avahi)
@@ -3043,6 +3044,38 @@ (define-public urh
 Radios.")
     (license license:gpl3+)))
 
+(define-public volk-gnsssdr
+  (package
+    (name "volk-gnsssdr")
+    (version "0.0.19")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/gnss-sdr/gnss-sdr")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0l1hqfqh8ffgy6nxqdk390vmnmhv66x7m8323mz2izczqc5acy1p"))))
+    (build-system cmake-build-system)
+    (native-inputs (list python python-mako))
+    (inputs
+        (list cpu-features))
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'chdir
+            (lambda _ (chdir "src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr"))))))
+    (home-page "https://github.com/gnss-sdr/gnss-sdr/blob/main/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/")
+    (synopsis "Sub-project of GNSS-SDR, provideing a set of extra kernels used stand-alone or in combination with VOLK's")
+    (description
+     "This library contains kernels of hand-written SIMD code for different
+mathematical operations, mainly with 8-bit and 16-bit real and complex data
+types, offering a platform/architecture agnostic version that will run in all
+machines, plus other versions for different SIMD instruction sets.")
+    (license license:gpl3+)))
+
 (define-public gnss-sdr
   (package
     (name "gnss-sdr")
-- 
2.34.1