From e783cdf76a452fba728fa3a392daf153693f9b43 Mon Sep 17 00:00:00 2001 From: Colin Date: Sun, 1 Mar 2026 10:29:44 +0000 Subject: [PATCH] spdlog: fix musl build --- pkgs/by-name/sp/spdlog/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/sp/spdlog/package.nix b/pkgs/by-name/sp/spdlog/package.nix index 11589629b129..c25ad11767cd 100644 --- a/pkgs/by-name/sp/spdlog/package.nix +++ b/pkgs/by-name/sp/spdlog/package.nix @@ -25,6 +25,15 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-bL3hQmERXNwGmDoi7+wLv/TkppGhG6cO47k1iZvJGzY="; }; + patches = [ + (fetchpatch { + # Remove when updating past 1.17.0. Fixes `pkgsMusl.spdlog` build. + url = "https://github.com/gabime/spdlog/commit/0f7562a0f9273cfc71fddc6ae52ebff7a490fa04.patch"; + name = "tests-timezone-Provide-DST-rules-when-setting-TZ-on-POSIX-systems"; + hash = "sha256-jsw3AgTXeRdU2ncuzAkYp6SPrBKntz2I3NLOjAPkW78="; + }) + ]; + nativeBuildInputs = [ cmake ]; # Required to build tests, even if they aren't executed buildInputs = [ catch2_3 ];