guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

22/52: gnu: iso-codes: Move inputs to native-inputs when cross-compiling


From: guix-commits
Subject: 22/52: gnu: iso-codes: Move inputs to native-inputs when cross-compiling.
Date: Mon, 20 Sep 2021 07:19:32 -0400 (EDT)

mothacehe pushed a commit to branch core-updates-frozen
in repository guix.

commit c170e9b75fbda901aaf46d3b8e09975cb9b422bb
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Tue Aug 24 16:19:32 2021 +0200

    gnu: iso-codes: Move inputs to native-inputs when cross-compiling.
    
    * gnu/packages/iso-codes.scm
      (iso-codes)[inputs]: Move "gettext", "perl" and "python" to ...
      (iso-codes)[native-inputs]: ... here when cross-compiling.
---
 gnu/packages/iso-codes.scm | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/iso-codes.scm b/gnu/packages/iso-codes.scm
index 637390d..b2cfd34 100644
--- a/gnu/packages/iso-codes.scm
+++ b/gnu/packages/iso-codes.scm
@@ -44,10 +44,19 @@
               (base32
                "1q6x9c5x4x0x4q11iygldsmxdyzhz1mb4n8im76glwsgqsqyjs80"))))
     (build-system gnu-build-system)
+    ;; TODO(staging): Unconditionally move inputs to native-inputs.
+    (native-inputs
+     (if (%current-target-system)
+         `(("python" ,python-wrapper)
+           ("perl" ,perl)
+           ("gettext" ,gettext-minimal))
+         '()))
     (inputs
-     `(("gettext" ,gettext-minimal)
-       ("perl" ,perl)
-       ("python" ,python-wrapper)))
+     `(,@(if (%current-target-system)
+             '()
+             `(("gettext" ,gettext-minimal)
+               ("perl" ,perl)
+               ("python" ,python-wrapper)))))
     (synopsis "Various ISO standards")
     (description
      "This package provides lists of various ISO standards (e.g. country,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]