From 5ec404e57d622232fb6764a757965bd7d776d074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 4 Sep 2025 14:58:50 -0700 Subject: [PATCH] spdlog: fix build with Catch2 3.9.0 --- pkgs/by-name/sp/spdlog/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/sp/spdlog/package.nix b/pkgs/by-name/sp/spdlog/package.nix index 37e08a8dc5a2..fe23aa839f5f 100644 --- a/pkgs/by-name/sp/spdlog/package.nix +++ b/pkgs/by-name/sp/spdlog/package.nix @@ -24,6 +24,12 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-9RhB4GdFjZbCIfMOWWriLAUf9DE/i/+FTXczr0pD0Vg="; }; + postPatch = '' + # https://github.com/gabime/spdlog/pull/3451 + substituteInPlace tests/CMakeLists.txt \ + --replace-fail 'COMMAND ''${test_target})' 'COMMAND ''${test_target} --order decl)' + ''; + nativeBuildInputs = [ cmake ]; # Required to build tests, even if they aren't executed buildInputs = [ catch2_3 ];