doxygen: unvendor spdlog

The vendored version is horribly outdated and not compatible with musl
1.2.4.

Requires backporting a patch to build properly.
This commit is contained in:
Alyssa Ross 2024-03-01 19:33:22 +01:00
parent aba28d5103
commit 52223518a0
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

View file

@ -2,12 +2,14 @@
, stdenv , stdenv
, cmake , cmake
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, python3 , python3
, flex , flex
, bison , bison
, qt5 , qt5
, CoreServices , CoreServices
, libiconv , libiconv
, spdlog
, sqlite , sqlite
}: }:
@ -22,6 +24,14 @@ stdenv.mkDerivation rec {
sha256 = "sha256-FPI5ICdn9Tne/g9SP6jAQS813AAyoDNooDR/Hyvq6R4="; sha256 = "sha256-FPI5ICdn9Tne/g9SP6jAQS813AAyoDNooDR/Hyvq6R4=";
}; };
patches = [
(fetchpatch {
name = "sys-spdlog-fix.patch";
url = "https://github.com/doxygen/doxygen/commit/0df6da616f01057d28b11c8bee28443c102dd424.patch";
hash = "sha256-7efkCQFYGslwqhIuPsLYTEiA1rq+mO0DuyQBMt0O+m0=";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
python3 python3
@ -29,12 +39,13 @@ stdenv.mkDerivation rec {
bison bison
]; ];
buildInputs = [ libiconv sqlite ] buildInputs = [ libiconv spdlog sqlite ]
++ lib.optionals (qt5 != null) (with qt5; [ qtbase wrapQtAppsHook ]) ++ lib.optionals (qt5 != null) (with qt5; [ qtbase wrapQtAppsHook ])
++ lib.optionals stdenv.isDarwin [ CoreServices ]; ++ lib.optionals stdenv.isDarwin [ CoreServices ];
cmakeFlags = [ cmakeFlags = [
"-DICONV_INCLUDE_DIR=${libiconv}/include" "-DICONV_INCLUDE_DIR=${libiconv}/include"
"-Duse_sys_spdlog=ON"
"-Duse_sys_sqlite3=ON" "-Duse_sys_sqlite3=ON"
] ++ lib.optional (qt5 != null) "-Dbuild_wizard=YES"; ] ++ lib.optional (qt5 != null) "-Dbuild_wizard=YES";