gnu: lbzip2: Fix cross-compilation.

* gnu/packages/compression.scm (lbzip2)[arguments]: Search (or
native-inputs inputs) for gnulib-tool.py.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
Brian Kubisiak 2022-03-29 18:45:55 -07:00 committed by Mathieu Othacehe
parent a006b7d347
commit 2387adf600
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -411,8 +411,10 @@ (define-public lbzip2
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'unpack-gnulib
(lambda* (#:key inputs #:allow-other-keys)
(let ((gnulib (assoc-ref inputs "gnulib")))
(lambda* (#:key inputs native-inputs #:allow-other-keys)
(let ((gnulib
(dirname (search-input-file (or native-inputs inputs)
"gnulib-tool.py"))))
(copy-recursively gnulib "lib")
(setenv "PATH" (string-append "lib:" (getenv "PATH")))
#t)))