From 5c6e2c0a905d7a2fa483fdee625c44f034e3f8d6 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Mon, 23 Dec 2024 15:18:08 +0100 Subject: [PATCH] ocamlPackages.ctypes-foreign: fix build with gcc-14 --- pkgs/development/ocaml-modules/ctypes/foreign.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/ocaml-modules/ctypes/foreign.nix b/pkgs/development/ocaml-modules/ctypes/foreign.nix index 1e082bff94dc..cb8f454e0e0c 100644 --- a/pkgs/development/ocaml-modules/ctypes/foreign.nix +++ b/pkgs/development/ocaml-modules/ctypes/foreign.nix @@ -24,6 +24,9 @@ buildDunePackage rec { lwt ]; + # Fix build with gcc 14 + env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types"; + meta = ctypes.meta // { description = "Dynamic access to foreign C libraries using Ctypes"; };