gnu: tomlplusplus: Fix build.

* gnu/packages/cpp.scm (tomlplusplus)[arguments]<#:phases>: Move the "C"
locale to part of the utf8 locale list.
[native-inputs]: Add ‘libc-utf8-locales-for-target’.

Change-Id: I1e6362dd27e88d22e1c40aea1ccf1767c93fbeac
This commit is contained in:
John Kehayias 2024-08-31 22:26:48 -04:00
parent 9626feb1cb
commit e05f0e9832
No known key found for this signature in database
GPG key ID: 499097AE5EA815D9

View file

@ -75,6 +75,7 @@ (define-module (gnu packages cpp)
#:use-module (gnu packages)
#:use-module (gnu packages assembly)
#:use-module (gnu packages autotools)
#:use-module (gnu packages base)
#:use-module (gnu packages bdw-gc)
#:use-module (gnu packages benchmark)
#:use-module (gnu packages boost)
@ -914,11 +915,12 @@ (define-public tomlplusplus
(lambda _
(substitute* "tests/meson.build"
(("foreach locale : test_locales" all)
(format #f "test_locales = ['C', ~{'~a.utf8', ~}]~%~a"
(format #f "test_locales = [~{'~a.utf8', ~}]~%~a"
;; %default-utf8-locales in (gnu packages base).
'("de_DE" "el_GR" "en_US" "fr_FR" "tr_TR")
'("C" "de_DE" "el_GR" "en_US" "fr_FR" "tr_TR")
all))))))))
(native-inputs (list cmake-minimal))
;; Tests require locales.
(native-inputs (list cmake-minimal (libc-utf8-locales-for-target)))
(home-page "https://marzer.github.io/tomlplusplus/")
(synopsis "Header-only TOML config file parser and serializer for C++17")
(description