diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2023-10-30 06:47:07 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2023-11-06 00:18:25 +0100 |
commit | 89de0d84cee39ea985a5d7bf5e77fbd7b00ecbb1 (patch) | |
tree | 16d08375814ad086a44bab993dba55eb633681b8 /pkgs | |
parent | af801efe5dfc7fed1e6346b7a32689175f44ae34 (diff) |
ocamlPackages.camlimages: fix build with OCaml ≥ 5.0
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/ocaml-modules/camlimages/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/ocaml-modules/camlimages/default.nix b/pkgs/development/ocaml-modules/camlimages/default.nix index 0d08cc48cb7b8..b1d3d51c86660 100644 --- a/pkgs/development/ocaml-modules/camlimages/default.nix +++ b/pkgs/development/ocaml-modules/camlimages/default.nix @@ -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 ]; |