[bug#71564,v2,2/3] gnu: Add volk-gnsssdr.

Message ID e618bd8eb4fd40bc035a5041dce326cd0a68eb70.1718599790.git.atai@atai.org
State New
Headers
Series *** Update of gnuradio and fixing dependency build failutes *** |

Commit Message

Andy Tai June 17, 2024, 4:53 a.m. UTC
* gnu/packages/radio.scm (volk-gnsssdr): New variable.

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

Comments

Guillaume Le Vaillant June 26, 2024, 9:44 a.m. UTC | #1
Andy Tai <atai@atai.org> skribis:

> * gnu/packages/radio.scm (volk-gnsssdr): New variable.
>
> [...]
>  
> +(define-public volk-gnsssdr
> [...]
> +    (inputs
> +        (list cpu-features))
> [...]

Hi.
It looks like the "cpu-features" package referenced as input here is
not in Guix. Did you forget to send it in this patch series? Or is it
somewhere else in another issue?
  
Andy Tai June 26, 2024, 1:31 p.m. UTC | #2
cpu-features at https://issues.guix.gnu.org/71597

On Wed, Jun 26, 2024 at 2:44 AM Guillaume Le Vaillant <glv@posteo.net> wrote:
>
> Andy Tai <atai@atai.org> skribis:
>
> > * gnu/packages/radio.scm (volk-gnsssdr): New variable.
> >
> > [...]
> >
> > +(define-public volk-gnsssdr
> > [...]
> > +    (inputs
> > +        (list cpu-features))
> > [...]
>
> Hi.
> It looks like the "cpu-features" package referenced as input here is
> not in Guix. Did you forget to send it in this patch series? Or is it
> somewhere else in another issue?
  

Patch

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")