diff mbox series

[bug#70252,v3,3/5] gnu: opencl-clhpp: Update package style.

Message ID 573fbf29b219aa723286972ddd419802d4c4ed35.1727613910.git.a.r.draidi@redscript.org
State New
Headers show
Series [bug#70252,v3,1/5] gnu: opencl-headers, opencl-clhpp and opencl-icd-loader: Replace version with %opencl-sdk-version. | expand

Commit Message

Ahmad Draidi Sept. 29, 2024, 12:45 p.m. UTC
* gnu/packages/opencl.scm: Add #:use-module (guix gexp).
(opencl-clhpp): [native-inputs]: Remove labels.
[arguments]: Use G-expressions.

Change-Id: I9c61aad824b5a57f941853635f30d2ec2dad38d8
---
 gnu/packages/opencl.scm | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/opencl.scm b/gnu/packages/opencl.scm
index f7f2bd0e0b..11fe4c8fd3 100644
--- a/gnu/packages/opencl.scm
+++ b/gnu/packages/opencl.scm
@@ -24,6 +24,7 @@  (define-module (gnu packages opencl)
   #:use-module (guix build-system python)
   #:use-module (guix download)
   #:use-module (guix utils)
+  #:use-module (guix gexp)
   #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
@@ -110,14 +111,16 @@  (define-public opencl-clhpp
         (base32 "172jxbx78bv6gapxx43bh7ni7zciw010gxx17h47sndhdasbi2bc"))
        (file-name (git-file-name name version))))
     (native-inputs
-     `(("python" ,python-wrapper)))
+     (list python-wrapper))
     (propagated-inputs
      (list opencl-headers))
     (arguments
-     `(#:configure-flags (list "-DBUILD_EXAMPLES=OFF" "-DBUILD_TESTS=OFF"
-                               "-DBUILD_TESTING=OFF") ;; CTest needs this to be turned off
-       ;; The regression tests require a lot more dependencies.
-       #:tests? #f))
+     (list #:configure-flags #~(list "-DBUILD_EXAMPLES=OFF"
+                                     "-DBUILD_TESTS=OFF"
+                                     ;; CTest needs this to be turned off
+                                     "-DBUILD_TESTING=OFF")
+           ;; The regression tests require a lot more dependencies.
+           #:tests? #f))
     (build-system cmake-build-system)
     (home-page "https://github.khronos.org/OpenCL-CLHPP/")
     (synopsis "Khronos OpenCL-CLHPP")