From 0e6d5f0483eaa997acd64d792bf25c34294bfd14 Mon Sep 17 00:00:00 2001 From: Nicolas Benes Date: Tue, 30 Jan 2024 20:42:35 +0100 Subject: [PATCH] fastcdr: fix build issue due to doxygen warnings Make the build pass despite of doxygen warnings until upstream has resolved the issue. --- pkgs/development/libraries/fastcdr/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/libraries/fastcdr/default.nix b/pkgs/development/libraries/fastcdr/default.nix index 64a7eeac1915f02..a5f87ec7b312085 100644 --- a/pkgs/development/libraries/fastcdr/default.nix +++ b/pkgs/development/libraries/fastcdr/default.nix @@ -23,6 +23,14 @@ stdenv.mkDerivation (finalAttrs: { ./0001-Do-not-require-wget-and-unzip.patch ]; + # Fix doc generation error with doxygen >= 1.10.0 + # see https://github.com/eProsima/Fast-CDR/issues/193 + postPatch = '' + substituteInPlace ./doxyfile.in --replace \ + "WARN_AS_ERROR = YES" \ + "WARN_AS_ERROR = NO" + ''; + cmakeFlags = lib.optional (stdenv.hostPlatform.isStatic) "-DBUILD_SHARED_LIBS=OFF" # upstream turns BUILD_TESTING=OFF by default and doesn't honor cmake's default (=ON) ++ lib.optional (finalAttrs.finalPackage.doCheck) "-DBUILD_TESTING=ON"