diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2021-08-11 09:42:44 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2021-08-27 20:50:55 +0200 |
commit | d8c63f8771242bf8954445a4850539686cae500e (patch) | |
tree | 93d39b41fcb46005ee9fc8d81b7efa9de7faf130 | |
parent | 95a86b9bab598f8d6b1414f489e901354626dfe9 (diff) | |
download | guix-d8c63f8771242bf8954445a4850539686cae500e.tar.gz guix-d8c63f8771242bf8954445a4850539686cae500e.zip |
gnu: clinfo: Update to 3.0.21.02.21 and simplify package.
* gnu/packages/opencl.scm (clinfo) [version]: Update to 3.0.21.02.21.
[arguments]: Simplify #:phases by adding make arguments to #:make-flags.
-rw-r--r-- | gnu/packages/opencl.scm | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/gnu/packages/opencl.scm b/gnu/packages/opencl.scm index 484a766aa2..ee88d92251 100644 --- a/gnu/packages/opencl.scm +++ b/gnu/packages/opencl.scm @@ -23,6 +23,7 @@ #:use-module (guix build-system copy) #:use-module (guix build-system python) #:use-module (guix download) + #:use-module (guix utils) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) @@ -160,7 +161,7 @@ Loader as provided by this package.") (define-public clinfo (package (name "clinfo") - (version "2.2.18.04.06") + (version "3.0.21.02.21") (source (origin (method git-fetch) @@ -169,26 +170,17 @@ Loader as provided by this package.") (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "0y2q0lz5yzxy970b7w7340vp4fl25vndahsyvvrywcrn51ipgplx")))) + (base32 "1sfxp6ai83i0vwdg7b05h0k07q6873q1z1avnyksj5zmzdnxya6j")))) (build-system gnu-build-system) (native-inputs `(("opencl-headers" ,opencl-headers))) (inputs `(("ocl-icd" ,ocl-icd))) (arguments - `(#:phases - (modify-phases %standard-phases - (delete 'configure) - (replace 'build - (lambda _ - (let ((cores (number->string (parallel-job-count)))) - (setenv "CC" "gcc") - (invoke "make" "-j" cores)))) - (replace 'install - (lambda* (#:key outputs #:allow-other-keys) - (invoke "make" "install" (string-append - "PREFIX=" - (assoc-ref outputs "out")))))) + `(#:make-flags + (list ,(string-append "CC=" (cc-for-target)) + (string-append "PREFIX=" (assoc-ref %outputs "out"))) + #:phases (modify-phases %standard-phases (delete 'configure)) #:tests? #f)) (home-page "https://github.com/Oblomov/clinfo") (synopsis "Print information about OpenCL platforms and devices") |