Commit 89de0d84 authored by Vincent Laporte's avatar Vincent Laporte Committed by Vincent Laporte
Browse files

ocamlPackages.camlimages: fix build with OCaml ≥ 5.0

parent af801efe
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -6,8 +6,6 @@ buildDunePackage rec {
  pname = "camlimages";
  version = "5.0.4";

  duneVersion = "3";

  minimalOCamlVersion = "4.07";

  src = fetchFromGitLab {
@@ -17,6 +15,10 @@ buildDunePackage rec {
    sha256 = "1m2c76ghisg73dikz2ifdkrbkgiwa0hcmp21f2fm2rkbf02rq3f4";
  };

  postPatch = ''
    substituteInPlace core/{images,units}.ml --replace String.lowercase String.lowercase_ascii
  '';

  nativeBuildInputs = [ cppo ];
  buildInputs = [ dune-configurator findlib graphics lablgtk stdio ];