Robert Schütz
2025-09-12 00:55:37 +01:00
committed by Emily
parent a9d1253dab
commit dc1a255cb5
+10 -6
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
fmt,
catch2_3,
@@ -15,20 +16,23 @@
stdenv.mkDerivation (finalAttrs: {
pname = "spdlog";
version = "1.15.2";
version = "1.15.3";
src = fetchFromGitHub {
owner = "gabime";
repo = "spdlog";
tag = "v${finalAttrs.version}";
hash = "sha256-9RhB4GdFjZbCIfMOWWriLAUf9DE/i/+FTXczr0pD0Vg=";
hash = "sha256-0rOR9G2Y4Z4OBZtUHxID0s1aXN9ejodHrurlVCA0pIo=";
};
postPatch = ''
patches = [
# https://github.com/gabime/spdlog/pull/3451
substituteInPlace tests/CMakeLists.txt \
--replace-fail 'COMMAND ''${test_target})' 'COMMAND ''${test_target} --order decl)'
'';
(fetchpatch {
name = "catch2-3.9.0-compat.patch";
url = "https://github.com/gabime/spdlog/commit/3edc8036dbf3c7cdf0e460a913ae294c87ae90dc.patch";
hash = "sha256-0XtNaAvDGpSTtQZjxmLbHOoY4OMZDJfLDzBh7gNQh2c=";
})
];
nativeBuildInputs = [ cmake ];
# Required to build tests, even if they aren't executed