From 63f77adfb19ed13bb9783b61934f888db596b3e1 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Wed, 26 Aug 2026 23:29:28 +0200 Subject: [PATCH 1/2] 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 --- pkgs/by-name/to/tomlplusplus/package.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/to/tomlplusplus/package.nix b/pkgs/by-name/to/tomlplusplus/package.nix index 7d8286454fad..25ebae16d944 100644 --- a/pkgs/by-name/to/tomlplusplus/package.nix +++ b/pkgs/by-name/to/tomlplusplus/package.nix @@ -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::collate_byname failed to construct for - doCheck = !stdenv.hostPlatform.isDarwin; + doCheck = stdenv.hostPlatform.isGnu; passthru = { updateScript = nix-update-script { }; From ee4d864e38ca534caec26e27e7dba0784aa947ab Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Wed, 26 Aug 2026 23:29:59 +0200 Subject: [PATCH 2/2] tomlplusplus: enable structuredAttrs and strictDeps Signed-off-by: Sefa Eyeoglu --- pkgs/by-name/to/tomlplusplus/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/to/tomlplusplus/package.nix b/pkgs/by-name/to/tomlplusplus/package.nix index 25ebae16d944..61f2adad6191 100644 --- a/pkgs/by-name/to/tomlplusplus/package.nix +++ b/pkgs/by-name/to/tomlplusplus/package.nix @@ -16,6 +16,9 @@ stdenv.mkDerivation (finalAttrs: { pname = "tomlplusplus"; version = "3.4.0"; + strictDeps = true; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "marzer"; repo = "tomlplusplus";