Commit 25b3bf9e authored by Benjamin Sparks's avatar Benjamin Sparks
Browse files

gz-utils: output doxygen documentation

parent 90c70448
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -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 ];