spdlog: fix compatiblity with fmt 10.0

This commit is contained in:
Mario Rodas 2023-05-20 04:20:00 +00:00
parent c171cc95be
commit 21ab21acee

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake, fmt
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, fmt
, staticBuild ? stdenv.hostPlatform.isStatic
}:
@ -13,6 +13,18 @@ stdenv.mkDerivation rec {
hash = "sha256-kA2MAb4/EygjwiLEjF9EA7k8Tk//nwcKB1+HlzELakQ=";
};
patches = [
# Fix compatiblity with fmt 10.0. Remove with the next release
(fetchpatch {
url = "https://github.com/gabime/spdlog/commit/0ca574ae168820da0268b3ec7607ca7b33024d05.patch";
hash = "sha256-cRsQilkyUQW47PFpDwKgU/pm+tOeLvwPx32gNOPAO1U=";
})
(fetchpatch {
url = "https://github.com/gabime/spdlog/commit/af1785b897c9d1098d4aa7213fad232be63c19b4.patch";
hash = "sha256-zpfLiBeDAOsvk4vrIyXC0kvFe2WkhAhersd+fhA8DFY=";
})
];
nativeBuildInputs = [ cmake ];
propagatedBuildInputs = [ fmt ];