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.
This commit is contained in:
		
							parent
							
								
									95a86b9bab
								
							
						
					
					
						commit
						d8c63f8771
					
				
					 1 changed files with 7 additions and 15 deletions
				
			
		| 
						 | 
					@ -23,6 +23,7 @@
 | 
				
			||||||
  #:use-module (guix build-system copy)
 | 
					  #:use-module (guix build-system copy)
 | 
				
			||||||
  #:use-module (guix build-system python)
 | 
					  #:use-module (guix build-system python)
 | 
				
			||||||
  #:use-module (guix download)
 | 
					  #:use-module (guix download)
 | 
				
			||||||
 | 
					  #:use-module (guix utils)
 | 
				
			||||||
  #:use-module (guix git-download)
 | 
					  #:use-module (guix git-download)
 | 
				
			||||||
  #:use-module ((guix licenses) #:prefix license:)
 | 
					  #:use-module ((guix licenses) #:prefix license:)
 | 
				
			||||||
  #:use-module (guix packages)
 | 
					  #:use-module (guix packages)
 | 
				
			||||||
| 
						 | 
					@ -160,7 +161,7 @@ Loader as provided by this package.")
 | 
				
			||||||
(define-public clinfo
 | 
					(define-public clinfo
 | 
				
			||||||
  (package
 | 
					  (package
 | 
				
			||||||
    (name "clinfo")
 | 
					    (name "clinfo")
 | 
				
			||||||
    (version "2.2.18.04.06")
 | 
					    (version "3.0.21.02.21")
 | 
				
			||||||
    (source
 | 
					    (source
 | 
				
			||||||
     (origin
 | 
					     (origin
 | 
				
			||||||
       (method git-fetch)
 | 
					       (method git-fetch)
 | 
				
			||||||
| 
						 | 
					@ -169,26 +170,17 @@ Loader as provided by this package.")
 | 
				
			||||||
             (commit version)))
 | 
					             (commit version)))
 | 
				
			||||||
       (file-name (git-file-name name version))
 | 
					       (file-name (git-file-name name version))
 | 
				
			||||||
       (sha256
 | 
					       (sha256
 | 
				
			||||||
        (base32 "0y2q0lz5yzxy970b7w7340vp4fl25vndahsyvvrywcrn51ipgplx"))))
 | 
					        (base32 "1sfxp6ai83i0vwdg7b05h0k07q6873q1z1avnyksj5zmzdnxya6j"))))
 | 
				
			||||||
    (build-system gnu-build-system)
 | 
					    (build-system gnu-build-system)
 | 
				
			||||||
    (native-inputs
 | 
					    (native-inputs
 | 
				
			||||||
     `(("opencl-headers" ,opencl-headers)))
 | 
					     `(("opencl-headers" ,opencl-headers)))
 | 
				
			||||||
    (inputs
 | 
					    (inputs
 | 
				
			||||||
     `(("ocl-icd" ,ocl-icd)))
 | 
					     `(("ocl-icd" ,ocl-icd)))
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     `(#:phases
 | 
					     `(#:make-flags
 | 
				
			||||||
       (modify-phases %standard-phases
 | 
					       (list ,(string-append "CC=" (cc-for-target))
 | 
				
			||||||
         (delete 'configure)
 | 
					              (string-append "PREFIX=" (assoc-ref %outputs "out")))
 | 
				
			||||||
         (replace 'build
 | 
					       #:phases (modify-phases %standard-phases (delete 'configure))
 | 
				
			||||||
           (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"))))))
 | 
					 | 
				
			||||||
       #:tests? #f))
 | 
					       #:tests? #f))
 | 
				
			||||||
    (home-page "https://github.com/Oblomov/clinfo")
 | 
					    (home-page "https://github.com/Oblomov/clinfo")
 | 
				
			||||||
    (synopsis "Print information about OpenCL platforms and devices")
 | 
					    (synopsis "Print information about OpenCL platforms and devices")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue