doxygen: 1.12.0 -> 1.13.0 (#368859)

This commit is contained in:
Atemu
2024-12-30 15:38:53 +01:00
committed by GitHub
@@ -1,39 +1,29 @@
{ lib
, stdenv
, cmake
, fetchFromGitHub
, fetchpatch
, python3
, flex
, bison
, qt5
, CoreServices
, libiconv
, spdlog
, sqlite
{
lib,
stdenv,
cmake,
fetchFromGitHub,
python3,
flex,
bison,
qt5,
CoreServices,
libiconv,
spdlog,
sqlite,
}:
stdenv.mkDerivation rec {
pname = "doxygen";
version = "1.12.0";
version = "1.13.0";
src = fetchFromGitHub {
owner = "doxygen";
repo = "doxygen";
rev = "Release_${lib.replaceStrings [ "." ] [ "_" ] version}";
hash = "sha256-4zSaM49TjOaZvrUChM4dNJLondCsQPSArOXZnTHS4yI=";
tag = "Release_${lib.replaceStrings [ "." ] [ "_" ] version}";
hash = "sha256-XKzH2nMByE0WE7WX4YYj2boq9+iwD7SyO5w9/4g9cGE=";
};
patches = [
# fix clang-19 build. can drop on next update
# https://github.com/doxygen/doxygen/pull/11064
(fetchpatch {
name = "fix-clang-19-build.patch";
url = "https://github.com/doxygen/doxygen/commit/cff64a87dea7596fd506a85521d4df4616dc845f.patch";
hash = "sha256-TtkVfV9Ep8/+VGbTjP4NOP8K3p1+A78M+voAIQ+lzOk=";
})
];
# https://github.com/doxygen/doxygen/issues/10928#issuecomment-2179320509
postPatch = ''
substituteInPlace CMakeLists.txt \
@@ -49,8 +39,19 @@ stdenv.mkDerivation rec {
bison
];
buildInputs = [ libiconv spdlog sqlite ]
++ lib.optionals (qt5 != null) (with qt5; [ qtbase wrapQtAppsHook ])
buildInputs =
[
libiconv
spdlog
sqlite
]
++ lib.optionals (qt5 != null) (
with qt5;
[
qtbase
wrapQtAppsHook
]
)
++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
cmakeFlags = [
@@ -60,18 +61,21 @@ stdenv.mkDerivation rec {
] ++ lib.optional (qt5 != null) "-Dbuild_wizard=YES";
# put examples in an output so people/tools can test against them
outputs = [ "out" "examples" ];
outputs = [
"out"
"examples"
];
postInstall = ''
cp -r ../examples $examples
'';
meta = {
license = lib.licenses.gpl2Plus;
homepage = "https://www.doxygen.nl/";
homepage = "https://www.doxygen.nl";
changelog = "https://www.doxygen.nl/manual/changelog.html";
description = "Source code documentation generator tool";
mainProgram = "doxygen";
longDescription = ''
Doxygen is the de facto standard tool for generating documentation from
annotated C++ sources, but it also supports other popular programming
@@ -81,7 +85,6 @@ stdenv.mkDerivation rec {
off-line reference manual (in LaTeX) from a set of documented source
files.
'';
platforms = if qt5 != null then lib.platforms.linux else lib.platforms.unix;
};
}