mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: libcpuid: Fix build.
* gnu/packages/hardware.scm (libcpuid)[arguments]<#:phases>: Replace 'check and call gnu-build-system's 'check with custom #:test-target. Change-Id: I5ffcdfe784505bf5f9c537416393797edd443373
This commit is contained in:
parent
df910cddce
commit
285e7eb219
1 changed files with 8 additions and 1 deletions
|
@ -1472,6 +1472,9 @@ management, attestation, encryption, and signing.")
|
|||
(arguments
|
||||
(list
|
||||
#:configure-flags #~(list "-DLIBCPUID_ENABLE_TESTS=ON")
|
||||
#:modules '((guix build cmake-build-system)
|
||||
((guix build gnu-build-system) #:prefix gnu:)
|
||||
(guix build utils))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'absolutize
|
||||
|
@ -1486,7 +1489,11 @@ management, attestation, encryption, and signing.")
|
|||
(when (and #$(target-linux?)
|
||||
#$(target-arm?))
|
||||
(substitute* "drivers/arm/linux/CMakeLists.txt"
|
||||
(("/usr/src/") (string-append #$output "/src/")))))))))
|
||||
(("/usr/src/") (string-append #$output "/src/"))))))
|
||||
(replace 'check
|
||||
(lambda* (#:rest args)
|
||||
(apply (assoc-ref gnu:%standard-phases 'check)
|
||||
#:test-target "test" args))))))
|
||||
(inputs
|
||||
(append
|
||||
(if (target-linux?)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue