gnu: mtd-utils: Fix cross-compiling.

* gnu/packages/linux.scm (mtd-utils)[arguments]: Only add configure-flag
to enable unit-tests when not cross compiling.
This commit is contained in:
Efraim Flashner 2022-03-07 22:39:53 +02:00
parent df03e7a601
commit 67d6544b6d
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -6610,7 +6610,10 @@ (define-public mtd-utils
(base32
"1mp9fqgnz5r69s8ly98ry6k2blqnaqpllwi8m930dm0n8zrwbm4a"))))
(arguments
'(#:configure-flags '("--enable-unit-tests")))
(list #:configure-flags
(if (%current-target-system) ; When cross-compiling.
#~(list)
#~(list "--enable-unit-tests"))))
(native-inputs
(list cmocka pkg-config))
(inputs