ocamlPackages.dolmen_loop: fix for gcc15

This commit is contained in:
Vincent Laporte
2025-12-31 10:54:04 +01:00
parent 86aca55f1d
commit ae36fa39d7
@@ -1,4 +1,6 @@
{
lib,
ocaml,
buildDunePackage,
dolmen,
dolmen_type,
@@ -11,6 +13,17 @@ buildDunePackage {
pname = "dolmen_loop";
inherit (dolmen) src version;
env =
# Fix build with gcc15
lib.optionalAttrs
(
lib.versionAtLeast ocaml.version "4.10" && lib.versionOlder ocaml.version "4.14"
|| lib.versions.majorMinor ocaml.version == "5.0"
)
{
NIX_CFLAGS_COMPILE = "-std=gnu11";
};
propagatedBuildInputs = [
dolmen
dolmen_type