From c170e9b75fbda901aaf46d3b8e09975cb9b422bb Mon Sep 17 00:00:00 2001 From: Maxime Devos Date: Tue, 24 Aug 2021 16:19:32 +0200 Subject: 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(-) (limited to 'gnu') diff --git a/gnu/packages/iso-codes.scm b/gnu/packages/iso-codes.scm index 637390d734..b2cfd3434c 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, -- cgit v1.2.3