Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / ocaml-modules / camlimages / default.nix
blobb1d3d51c866608e49d9cb197d65896d510d41907
1 { lib, fetchFromGitLab, buildDunePackage, findlib, dune-configurator, cppo
2 , graphics, lablgtk, stdio
3 }:
5 buildDunePackage rec {
6   pname = "camlimages";
7   version = "5.0.4";
9   minimalOCamlVersion = "4.07";
11   src = fetchFromGitLab {
12     owner = "camlspotter";
13     repo = pname;
14     rev = version;
15     sha256 = "1m2c76ghisg73dikz2ifdkrbkgiwa0hcmp21f2fm2rkbf02rq3f4";
16   };
18   postPatch = ''
19     substituteInPlace core/{images,units}.ml --replace String.lowercase String.lowercase_ascii
20   '';
22   nativeBuildInputs = [ cppo ];
23   buildInputs = [ dune-configurator findlib graphics lablgtk stdio ];
25   meta = with lib; {
26     branch = "5.0";
27     inherit (src.meta) homepage;
28     description = "OCaml image processing library";
29     license = licenses.lgpl2;
30     maintainers = [ maintainers.vbgl maintainers.mt-caret ];
31   };