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:
parent
1525443e02
commit
3c6cbd866c
1 changed files with 3 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue