0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

gz-utils: output doxygen documentation

This commit is contained in:
Benjamin Sparks 2025-04-25 17:25:33 +02:00
parent 90c70448cc
commit 25b3bf9e7d

View file

@ -6,6 +6,8 @@
# nativeBuildInputs
cmake,
gz-cmake,
doxygen,
graphviz,
# buildInputs
cli11,
@ -28,6 +30,11 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-fYzysdB608jfMb/EbqiGD4hXmPxcaVTUrt9Wx0dBlto=";
};
outputs = [
"doc"
"out"
];
# Remove vendored gtest, use nixpkgs' version instead.
postPatch = ''
rm -r test/gtest_vendor
@ -39,6 +46,8 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
cmake
gz-cmake
doxygen
graphviz
];
buildInputs = [
@ -53,6 +62,11 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeBool "GZ_UTILS_VENDOR_CLI11" false)
];
postBuild = ''
make doc
cp -r doxygen/html $doc
'';
nativeCheckInputs = [ python3 ];
checkInputs = [ gtest ];