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

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

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

* gnu/packages/compression.scm (bzip2)[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 672d5119be..857722ef4a 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -394,6 +394,10 @@ (define-public bzip2
        ,@(if (%current-target-system)
              '(#:tests? #f)
              '())))
+    (inputs
+     `(,@(if (%current-target-system)
+             `(("bash" ,bash-minimal))
+             '())))
     (outputs '("out" "static"))
     (synopsis "High-quality data compression program")
     (description
-- 
2.37.3