[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/15: gnu: Add libc-locales-for-target and glibc-locales/hurd.
From: |
guix-commits |
Subject: |
14/15: gnu: Add libc-locales-for-target and glibc-locales/hurd. |
Date: |
Thu, 20 Jul 2023 04:35:50 -0400 (EDT) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit f67dcab4524a502203aa6f12b5cdaa4cb611b4c5
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Wed Jun 7 19:19:01 2023 +0200
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.
---
gnu/packages/base.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
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")
- branch hurd-team created (now f0a5ec7ac3), guix-commits, 2023/07/20
- 14/15: gnu: Add libc-locales-for-target and glibc-locales/hurd.,
guix-commits <=
- 03/15: hurd: Support system init in /libexec/runsystem., guix-commits, 2023/07/20
- 07/15: build: Build gnu/packages/*.go in five steps., guix-commits, 2023/07/20
- 06/15: system: hurd: Add swap-services to hurd-default-essential-services., guix-commits, 2023/07/20
- 05/15: system: hurd: Add procps to %base-packages/hurd., guix-commits, 2023/07/20
- 09/15: gnu: guix: Update to 1.4.0-8.fde86c4932., guix-commits, 2023/07/20
- 08/15: self: Build gnu/packages/*.go in 26 steps on the Hurd., guix-commits, 2023/07/20
- 01/15: gnu: guix: Disable some test on 32bit., guix-commits, 2023/07/20
- 02/15: gnu: guix: Disable some tests on the Hurd., guix-commits, 2023/07/20
- 13/15: DRAFT system: examples: Add devel-hurd.tmpl., guix-commits, 2023/07/20
- 04/15: hurd-boot: Support system init: Create essential device nodes., guix-commits, 2023/07/20