gnu: mcelog: Use G-expressions.

* gnu/packages/linux.scm (mcelog)[arguments]:
Rewrite as G-expressions.
This commit is contained in:
Tobias Geerinckx-Rice 2022-08-14 02:00:01 +02:00
parent 3aebdc8f37
commit ca94157380
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -6683,16 +6683,18 @@ (define-public mcelog
(("\"unknown\"") (string-append "\"v" ,version "\""))))))) (("\"unknown\"") (string-append "\"v" ,version "\"")))))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:phases (modify-phases %standard-phases (list
(delete 'configure)) ; no configure script ;; The tests will only run as root on certain supported CPU models.
#:make-flags (let ((out (assoc-ref %outputs "out"))) #:tests? #f
(list (string-append "CC=" ,(cc-for-target)) #:make-flags
(string-append "prefix=" out) #~(list (string-append "CC=" #$(cc-for-target))
(string-append "DOCDIR=" out "/share/doc/" (string-append "prefix=" #$output)
,name "-" ,version) (string-append "DOCDIR=" #$output "/share/doc/"
"etcprefix=$(DOCDIR)/examples")) #$name "-" #$version)
;; The tests will only run as root on certain supported CPU models. "etcprefix=$(DOCDIR)/examples")
#:tests? #f)) #:phases
#~(modify-phases %standard-phases
(delete 'configure)))) ; no configure script
(native-inputs (native-inputs
(list python-wrapper)) ; to generate example mcelog.conf (list python-wrapper)) ; to generate example mcelog.conf
(supported-systems (list "i686-linux" "x86_64-linux")) (supported-systems (list "i686-linux" "x86_64-linux"))