Commit bdf4f357 authored by Vincent Laporte's avatar Vincent Laporte Committed by Vincent Laporte
Browse files

ocamlPackages.lablgtk3: fix build with Clang

parent 48422449
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
{ 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 ];