[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/19: gnu: Add libc-locales-for-target and glibc-locales/hurd.
From: |
guix-commits |
Subject: |
16/19: gnu: Add libc-locales-for-target and glibc-locales/hurd. |
Date: |
Sat, 2 Sep 2023 11:48:57 -0400 (EDT) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit f41a3f491a58eb425137cf0753b528811b579abe
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 32bc69e2c4..24c18380ae 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
%final-inputs))
@@ -1505,6 +1507,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")
- 11/19: system: hurd: Add procps to %base-packages/hurd., (continued)
- 11/19: system: hurd: Add procps to %base-packages/hurd., guix-commits, 2023/09/02
- 13/19: DRAFT hurd: Support second boot., guix-commits, 2023/09/02
- 03/19: gnu: guix: Update to 1.4.0-12.329069a2fb., guix-commits, 2023/09/02
- 08/19: gnu: librsvg: Build without gobject-introspection for the Hurd., guix-commits, 2023/09/02
- 10/19: hurd-boot: Support system init: Create essential device nodes., guix-commits, 2023/09/02
- 01/19: self: Build directories in chunks of max 25 files at a time., guix-commits, 2023/09/02
- 19/19: Revert "DRAFT daemon: Support chroot builds on GNU/Hurd.", guix-commits, 2023/09/02
- 05/19: squash! self: Build directories in chunks of max 25 files at a time. -- remove gc, guix-commits, 2023/09/02
- 02/19: gnu: guix: Update to 1.4.0-11.45de303d8b., guix-commits, 2023/09/02
- 14/19: DRAFT hurd-boot: Support second boot., guix-commits, 2023/09/02
- 16/19: gnu: Add libc-locales-for-target and glibc-locales/hurd.,
guix-commits <=
- 18/19: DRAFT daemon: Support chroot builds on GNU/Hurd., guix-commits, 2023/09/02
- 15/19: DRAFT system: examples: Add devel-hurd.tmpl., guix-commits, 2023/09/02
- 17/19: locale: Set %default-locale-definitions to glibc/hurd on the Hurd., guix-commits, 2023/09/02
- 12/19: system: hurd: Add swap-services to hurd-default-essential-services., guix-commits, 2023/09/02