gnu: extra-cmake-modules: Don't run tests when cross-compiling.

* gnu/packages/kde-frameworks.scm
  (extra-cmake-modules)[arguments]<#:tests?>: Set to #false when
  cross-compiling.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
Maxime Devos 2022-03-04 13:01:18 +00:00 committed by Maxim Cournoyer
parent 8afa5ace49
commit fbc46b61da
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -106,7 +106,8 @@ (define-public extra-cmake-modules
'()
`(("qtbase" ,qtbase-5)))) ;for tests (needs qmake)
(arguments
`(#:tests? ,(not (null? (package-native-inputs this-package)))
`(#:tests? ,(and (not (%current-target-system))
(not (null? (package-native-inputs this-package))))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-lib-path