gnu: parallel: Fix cross-compilation.

* gnu/packages/parallel.scm (parallel)[arguments]<#:phases>: when tests?, run
post-install-test.

Change-Id: I5aabf0a80e0c314e9cb86bfa96de561ae5fcaa49
This commit is contained in:
Zheng Junjie 2024-08-28 16:04:47 +08:00
parent e804efb1c7
commit 53396a22af
No known key found for this signature in database
GPG Key ID: 3B5AA993E1A2DFF0

View File

@ -117,11 +117,12 @@
'("perl" '("perl"
"procps"))))))) "procps")))))))
(add-after 'wrap-program 'post-install-test (add-after 'wrap-program 'post-install-test
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key tests? outputs #:allow-other-keys)
(when tests?
(invoke (string-append (invoke (string-append
(assoc-ref outputs "out") "/bin/parallel") (assoc-ref outputs "out") "/bin/parallel")
"echo" "echo"
":::" "1" "2" "3")))))) ":::" "1" "2" "3")))))))
(native-inputs (native-inputs
(list perl pod2pdf)) (list perl pod2pdf))
(inputs (inputs