From bdf4f3570a47dd722db6922440c0b8cbb81e754c Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 12 Feb 2024 21:30:42 +0100 Subject: [PATCH] ocamlPackages.lablgtk3: fix build with Clang --- pkgs/development/ocaml-modules/lablgtk3/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/lablgtk3/default.nix b/pkgs/development/ocaml-modules/lablgtk3/default.nix index a6aa522f7c84..371372579598 100644 --- a/pkgs/development/ocaml-modules/lablgtk3/default.nix +++ b/pkgs/development/ocaml-modules/lablgtk3/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchurl, pkg-config, buildDunePackage, dune-configurator +{ lib, fetchurl, fetchpatch, pkg-config, buildDunePackage, dune-configurator , gtk3, cairo2 , camlp-streams }: @@ -14,6 +14,13 @@ buildDunePackage rec { hash = "sha256-bxEVMzfnaH5yHVxAmifNYOy8GnSivLLgSE/9+1yxBI4="; }; + # Fix build with clang 16 + # See: https://github.com/garrigue/lablgtk/pull/175 + patches = fetchpatch { + url = "https://github.com/garrigue/lablgtk/commit/a9b64b9ed8a13855c672cde0a2d9f78687f4214b.patch"; + hash = "sha256-j/L+yYKLlj410jx2VG77hnn9SVHCcSzmr3wpOMZhX5w="; + }; + nativeBuildInputs = [ pkg-config ]; buildInputs = [ dune-configurator camlp-streams ]; propagatedBuildInputs = [ gtk3 cairo2 ];