From 6ec6fb0a7c64ad98dd2d21caf5246138c691ce0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Wed, 11 Feb 2026 20:35:44 +0100 Subject: [PATCH] ocaml: fixup build on darwin https://hydra.nixos.org/build/321382407/nixlog/1/tail I presume that this is about gcc vs. clang toolchain, but I haven't tested. --- pkgs/development/compilers/ocaml/generic.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/compilers/ocaml/generic.nix b/pkgs/development/compilers/ocaml/generic.nix index b2a1896622c1..cfca2e9393a5 100644 --- a/pkgs/development/compilers/ocaml/generic.nix +++ b/pkgs/development/compilers/ocaml/generic.nix @@ -92,6 +92,11 @@ stdenv.mkDerivation ( patches = map fetchpatch' patches; + # https://github.com/ocaml/ocaml/issues/14543 + postPatch = if stdenv.cc.isClang then '' + rm testsuite/tests/basic/trigraph.ml + '' else null; + strictDeps = true; prefixKey = "-prefix ";