ocamlPackages.patricia-tree: fix for gcc15

This commit is contained in:
Vincent Laporte
2025-12-31 10:54:07 +01:00
parent ae36fa39d7
commit 30752afeb0
@@ -1,5 +1,6 @@
{
lib,
ocaml,
buildDunePackage,
fetchFromGitHub,
findlib,
@@ -14,6 +15,11 @@ buildDunePackage rec {
minimalOCamlVersion = "4.14";
# Fix build with gcc15
env = lib.optionalAttrs (lib.versions.majorMinor ocaml.version == "5.0") {
NIX_CFLAGS_COMPILE = "-std=gnu11";
};
src = fetchFromGitHub {
owner = "codex-semantics-library";
repo = "patricia-tree";