summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2021-11-05 16:51:15 +0100
committerMarius Bakke <marius@gnu.org>2021-11-06 17:41:41 +0100
commit3c6cbd866c44542297da09f9d00392b52acc99e5 (patch)
tree8b1e70118ea1655e3628bdef4c6fdc60a5577e89 /gnu
parent1525443e02f5462934d32904973692541b7057d7 (diff)
downloadguix-3c6cbd866c44542297da09f9d00392b52acc99e5.tar.gz
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.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/compression.scm5
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.