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