summary refs log tree commit diff
diff options
context:
space:
mode:
authorJanneke Nieuwenhuizen <janneke@gnu.org>2023-06-07 19:19:01 +0200
committerJanneke Nieuwenhuizen <janneke@gnu.org>2023-07-21 17:58:18 +0200
commitc8fab97da881e56b141295a3e57583bffdc7b09c (patch)
tree7815a8dcc320e06cf4a25c4b4c7f6913423b8546
parent55037bb70621a6ea8b9f5b0d6129d34aa38a2f6f (diff)
downloadguix-c8fab97da881e56b141295a3e57583bffdc7b09c.tar.gz
gnu: Add libc-locales-for-target and glibc-locales/hurd.
* gnu/packages/base.scm (glibc-locales/hurd): New variable
(libc-locales-for-target): Use it in new procedure.
(glibc-utf8-locales/hurd): New variable.
(libc-utf8-locales-for-target): Use it in new procedure.
-rw-r--r--gnu/packages/base.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 1fdfaf8a57..8cf2682fac 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -77,6 +77,8 @@
   #:use-module (srfi srfi-26)
   #:export (glibc
             libc-for-target
+            libc-locales-for-target
+            libc-utf8-locales-for-target
             make-ld-wrapper
             libiconv-if-needed))
 
@@ -1504,6 +1506,31 @@ command.")
     (_
      glibc)))
 
+(define-public glibc-locales/hurd
+  (make-glibc-locales glibc/hurd))
+
+(define* (libc-locales-for-target #:optional
+                                  (target (or (%current-target-system)
+                                              (%current-system))))
+  (match target
+    ((? target-hurd?)
+     glibc-locales/hurd)
+    (_
+     glibc-locales)))
+
+(define-public glibc-utf8-locales/hurd
+  (hidden-package
+   (make-glibc-utf8-locales glibc/hurd)))
+
+(define* (libc-utf8-locales-for-target #:optional
+                                       (target (or (%current-target-system)
+                                                   (%current-system))))
+  (match target
+    ((? target-hurd?)
+     glibc-utf8-locales/hurd)
+    (_
+     glibc-utf8-locales)))
+
 (define-public tzdata
   (package
     (name "tzdata")