gnu: nvme-cli: Use G-expressions.

* gnu/packages/linux.scm (nvme-cli)[arguments]:
Rewrite as G-expressions.
This commit is contained in:
Tobias Geerinckx-Rice 2022-01-16 01:00:01 +01:00
parent a7fd4bb828
commit 847bd37be7
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -4736,17 +4736,18 @@ (define-public nvme-cli
(file-name (git-file-name name version)))) (file-name (git-file-name name version))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:make-flags (list #:make-flags
(list ,(string-append "CC=" (cc-for-target))) #~(list (string-append "CC=" #$(cc-for-target)))
#:phases (modify-phases %standard-phases #:phases
(delete 'configure) ; no ./configure script #~(modify-phases %standard-phases
(replace 'install (delete 'configure) ; no ./configure script
(lambda _ (replace 'install
(invoke "make" "install-spec" "PREFIX=" (lambda _
(string-append "DESTDIR=" %output))))) (invoke "make" "install-spec" "PREFIX="
;; The tests require sysfs, which is not accessible from from the build (string-append "DESTDIR=" #$output)))))
;; environment ;; The tests require sysfs, which is not accessible from from the
#:tests? #f)) ;; build environment.
#:tests? #f))
(synopsis "NVM-Express user space tooling for Linux") (synopsis "NVM-Express user space tooling for Linux")
(description "Nvme-cli is a utility to provide standards compliant tooling (description "Nvme-cli is a utility to provide standards compliant tooling
for NVM-Express drives. It was made specifically for Linux as it relies on the for NVM-Express drives. It was made specifically for Linux as it relies on the