1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-27 03:21:49 +02:00

gnu: Add elixir-ex-cldr.

* gnu/packages/elixir-i18n.scm (elixir-ex-cldr): New variable.

Change-Id: I3efe14f9578773303f710e79eb3742fc1a05fd83
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Giacomo Leidi
2025-09-16 23:43:33 +02:00
committed by Ludovic Courtès
parent 7323e264b3
commit ae19a53a23
+25
View File
@@ -93,3 +93,28 @@ for over 700 locales for internationalized (i18n) and localized (L10N)
applications.")
(home-page "https://hexdocs.pm/ex_cldr/")
(license license:asl2.0)))
(define-public elixir-ex-cldr
(package
(inherit elixir-ex-cldr-minimal)
(name "elixir-ex-cldr")
(version "2.43.2")
(source
(origin
;; The hex.pm package ships only the en locale.
(method git-fetch)
(uri (git-reference
(url "https://github.com/elixir-cldr/cldr.git")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1wgwp74ya0gkvd5pk4qv9s38p85r5yw370y4wv7jywy3hrbrj9f5"))))
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
;; test That locales with no version are replaced with current version
;; test That locales with an old version are replaced with current version
(lambda _
(for-each delete-file '("test/locale_upgrade_test.exs")))))))))