diff --git a/pkgs/applications/science/math/labplot/default.nix b/pkgs/applications/science/math/labplot/default.nix index 8bb667e1a8fa..0aeb232dd031 100644 --- a/pkgs/applications/science/math/labplot/default.nix +++ b/pkgs/applications/science/math/labplot/default.nix @@ -1,5 +1,6 @@ { lib , stdenv +, fetchpatch , fetchurl , cmake , extra-cmake-modules @@ -54,6 +55,14 @@ stdenv.mkDerivation rec { "-DENABLE_VECTOR_BLF=OFF" ]; + patches = [ + (fetchpatch { + name = "matio-fix-compilation-for-latest-version-1.5.27.patch"; + url = "https://github.com/KDE/labplot/commit/d6142308ffa492d9f7cea00fad3b4cd1babfd00c.patch"; + hash = "sha256-qD5jj6GxBKbQezKJb1Z8HnwFO84WJBGQDawS/6o/wHE="; + }) + ]; + nativeBuildInputs = [ cmake extra-cmake-modules