tomlplusplus: only run checks on GNU platforms

Seems like locale related tests fail on platforms without glibc. Perhaps
this is an easy fix but I don't have enough experience with other libc
implementations.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu
2026-08-26 23:29:28 +02:00
parent ca3bd05783
commit 63f77adfb1

View File

@@ -40,7 +40,7 @@ stdenv.mkDerivation (finalAttrs: {
pkg-config
];
checkInputs = [
nativeCheckInputs = lib.optionals stdenv.hostPlatform.isGnu [
glibcLocales
];
@@ -49,9 +49,10 @@ stdenv.mkDerivation (finalAttrs: {
"-Dbuild_examples=true"
];
# almost all tests fail on Darwin with the following exception:
# locale tests seem to only work with glibc
# darwin also fails the following:
# libc++abi: terminating due to uncaught exception of type std::runtime_error: collate_byname<char>::collate_byname failed to construct for
doCheck = !stdenv.hostPlatform.isDarwin;
doCheck = stdenv.hostPlatform.isGnu;
passthru = {
updateScript = nix-update-script { };