mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 20:00:10 +00:00
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:
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user