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:
parent
90c70448cc
commit
25b3bf9e7d
1 changed files with 14 additions and 0 deletions
|
@ -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 ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue