1{
2 lib,
3 fetchFromGitLab,
4 buildDunePackage,
5 findlib,
6 dune-configurator,
7 cppo,
8 graphics,
9 lablgtk,
10 stdio,
11}:
12
13buildDunePackage rec {
14 pname = "camlimages";
15 version = "5.0.5";
16
17 minimalOCamlVersion = "4.07";
18
19 src = fetchFromGitLab {
20 owner = "camlspotter";
21 repo = pname;
22 rev = version;
23 hash = "sha256-/Dkj8IBVPjGCJCXrLOuJtuaa+nD/a9e8/N+TN9ukw4k=";
24 };
25
26 # stdio v0.17 compatibility
27 patches = [ ./camlimages.patch ];
28
29 nativeBuildInputs = [ cppo ];
30 buildInputs = [
31 dune-configurator
32 findlib
33 graphics
34 lablgtk
35 stdio
36 ];
37
38 meta = with lib; {
39 branch = "5.0";
40 inherit (src.meta) homepage;
41 description = "OCaml image processing library";
42 license = licenses.lgpl2;
43 maintainers = [
44 maintainers.vbgl
45 maintainers.mt-caret
46 ];
47 };
48}