gnu: snappy: Cross-compile.

* gnu/packages/compression.scm (snappy)[arguments]: Adjust
unpack-third_party-subprojects phase to look up inputs from NATIVE-INPUTS in
addition to INPUTS.
This commit is contained in:
Marius Bakke 2021-11-05 16:51:15 +01:00
parent 1525443e02
commit 3c6cbd866c
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -1223,11 +1223,12 @@ (define-public snappy
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'unpack-third_party-subprojects
(lambda* (#:key inputs #:allow-other-keys)
(lambda* (#:key native-inputs inputs #:allow-other-keys)
(with-directory-excursion "third_party"
(for-each (lambda (subproject)
(let* ((input (string-append subproject "-source"))
(source (assoc-ref inputs input)))
(source (assoc-ref (or native-inputs inputs)
input)))
(with-directory-excursion subproject
;; Take advantage of the coincidence that both
;; use GIT-FETCH, which creates a directory.