From 53396a22afc04536ddf75d8f82ad2eafa5082725 Mon Sep 17 00:00:00 2001 From: Zheng Junjie Date: Wed, 28 Aug 2024 16:04:47 +0800 Subject: gnu: parallel: Fix cross-compilation. * gnu/packages/parallel.scm (parallel)[arguments]<#:phases>: when tests?, run post-install-test. Change-Id: I5aabf0a80e0c314e9cb86bfa96de561ae5fcaa49 --- gnu/packages/parallel.scm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index 0e06ef4324..ce1f4f9f79 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm @@ -117,11 +117,12 @@ '("perl" "procps"))))))) (add-after 'wrap-program 'post-install-test - (lambda* (#:key outputs #:allow-other-keys) - (invoke (string-append - (assoc-ref outputs "out") "/bin/parallel") - "echo" - ":::" "1" "2" "3")))))) + (lambda* (#:key tests? outputs #:allow-other-keys) + (when tests? + (invoke (string-append + (assoc-ref outputs "out") "/bin/parallel") + "echo" + ":::" "1" "2" "3"))))))) (native-inputs (list perl pod2pdf)) (inputs -- cgit v1.2.3