Merge pull request #292630 from alyssais/doxygen-spdlog

doxygen: unvendor spdlog
This commit is contained in:
Sandro 2024-03-02 00:30:08 +01:00 committed by GitHub
commit 9685fb69a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,12 +2,14 @@
, stdenv
, cmake
, fetchFromGitHub
, fetchpatch
, python3
, flex
, bison
, qt5
, CoreServices
, libiconv
, spdlog
, sqlite
}:
@ -22,6 +24,14 @@ stdenv.mkDerivation rec {
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 = [
cmake
python3
@ -29,12 +39,13 @@ stdenv.mkDerivation rec {
bison
];
buildInputs = [ libiconv sqlite ]
buildInputs = [ libiconv spdlog sqlite ]
++ lib.optionals (qt5 != null) (with qt5; [ qtbase wrapQtAppsHook ])
++ lib.optionals stdenv.isDarwin [ CoreServices ];
cmakeFlags = [
"-DICONV_INCLUDE_DIR=${libiconv}/include"
"-Duse_sys_spdlog=ON"
"-Duse_sys_sqlite3=ON"
] ++ lib.optional (qt5 != null) "-Dbuild_wizard=YES";