diff options
author | Marius Bakke <marius@gnu.org> | 2021-11-05 16:51:15 +0100 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2021-11-06 17:41:41 +0100 |
commit | 3c6cbd866c44542297da09f9d00392b52acc99e5 (patch) | |
tree | 8b1e70118ea1655e3628bdef4c6fdc60a5577e89 | |
parent | 1525443e02f5462934d32904973692541b7057d7 (diff) | |
download | guix-3c6cbd866c44542297da09f9d00392b52acc99e5.tar.gz guix-3c6cbd866c44542297da09f9d00392b52acc99e5.zip |
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.
-rw-r--r-- | gnu/packages/compression.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 0deb8f3e1c..709fc232f3 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -1223,11 +1223,12 @@ well as bzip2.") #: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. |