fmt_11: add patch to fix clang build

This commit is contained in:
Reno Dakota
2024-11-20 02:14:52 +00:00
committed by Emily
parent 4e9d1421f3
commit 2115c501c4
+9 -1
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
enableShared ? !stdenv.hostPlatform.isStatic,
@@ -39,7 +40,7 @@ let
nativeBuildInputs = [ cmake ];
cmakeFlags = [ "-DBUILD_SHARED_LIBS=${if enableShared then "ON" else "OFF"}" ];
cmakeFlags = [ (lib.cmakeBool "BUILD_SHARED_LIBS" enableShared) ];
doCheck = true;
@@ -86,5 +87,12 @@ in
fmt_11 = generic {
version = "11.0.2";
hash = "sha256-IKNt4xUoVi750zBti5iJJcCk3zivTt7nU12RIf8pM+0=";
patches = [
(fetchpatch {
name = "get-rid-of-std-copy-fix-clang.patch";
url = "https://github.com/fmtlib/fmt/commit/6e462b89aa22fd5f737ed162d0150e145ccb1914.patch";
hash = "sha256-tRU1y1VCxtQ5J2yvFmwUx+YNcQs8izzLImD37KBiCFk=";
})
];
};
}