[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#44075] [PATCH] gnu: Add make-glibc-locales-collection.
From: |
Miguel Ángel Arruga Vivas |
Subject: |
[bug#44075] [PATCH] gnu: Add make-glibc-locales-collection. |
Date: |
Wed, 04 Nov 2020 17:12:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hi Efraim and Ludo!
This patch could be an starting point to even master, it allows to
extend easily glibc-utf8-locales to the desired ones.
I've used the following steps to test it[1]:
------------------------------>8----------------------------------
$ echo '(define-module (t) #:use-module (gnu packages base))
(define-public glibc-utf8-test
(make-glibc-utf8-locales glibc #:locales (list "es_ES")
#:name "glibc-utf8-test"))
glibc-utf8-test' > tmp/t.scm
$ ./pre-inst-env guix build -f tmp/t.scm
$ ./pre-inst-env guix package -L tmp --show=glibc-utf8-test
------------------------------8<----------------------------------
Something like glibc-utf8-<language>-locales could be easily implemented
on top of this, and I think it could be helpful for the end user too.
WDYT?
Happy hacking!
Miguel
[1] After checking that ./pre-inst-env guix build glibc-utf8-locales
didn't rebuild anything at all, of course.
0001-gnu-base-Add-optional-locales-keyword-to-make-glibc-.patch
Description: utf8-locales.patch
signature.asc
Description: PGP signature
- [bug#44075] [PATCH] gnu: Add make-glibc-locales-collection.,
Miguel Ángel Arruga Vivas <=