ocamlPackages.lablgtk3: fix build with Clang

This commit is contained in:
Vincent Laporte 2024-02-12 21:30:42 +01:00 committed by Vincent Laporte
parent 48422449b8
commit bdf4f3570a

View file

@ -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 ];