From b8da68b20785468050910a7b108488641ea341cc Mon Sep 17 00:00:00 2001 From: Jan Solanti Date: Tue, 9 Jan 2024 22:57:06 +0200 Subject: [PATCH] meshlab: fix build with GCC 13 --- pkgs/applications/graphics/meshlab/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/graphics/meshlab/default.nix b/pkgs/applications/graphics/meshlab/default.nix index 656713fb25e4..bee1e35ec129 100644 --- a/pkgs/applications/graphics/meshlab/default.nix +++ b/pkgs/applications/graphics/meshlab/default.nix @@ -75,6 +75,11 @@ mkDerivation rec { "-DALLOW_BUNDLED_LEVMAR=ON" ]; + CXXFLAGS = [ + # GCC 13: error: 'int16_t' has not been declared in 'std' + "-include cstdint" + ]; + postFixup = '' patchelf --add-needed $out/lib/meshlab/libmeshlab-common.so $out/bin/.meshlab-wrapped '';