Subject: [PATCH 2/3] gnu: xz: Fix script interpreters when cross-compiling.

From: Christopher Baines <[email-masked]>
Date: Fri, 28 Oct 2022 13:29:35 +0100

Add bash-minimal as an input fixes the interpreters for various scripts (like
xzgrep and xzless) when cross-compiling.

* gnu/packages/compression.scm (xz)[inputs]: Add bash-minimal when cross
compiling.
---
 gnu/packages/compression.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index b3a678480d..672d5119be 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -529,6 +529,10 @@ (define-public xz
                 (("^old_library='liblzma.a'") "old_library=''"))
               #t))))))
    (outputs '("out" "static"))
+   (inputs
+    `(,@(if (%current-target-system)
+            `(("bash" ,bash-minimal))
+            '())))
    (synopsis "General-purpose data compression")
    (description
     "XZ Utils is free general-purpose data compression software with high
-- 
2.37.3