13 buildDunePackage rec {
18 url = "https://github.com/Chris00/ocaml-cairo/releases/download/${version}/cairo2-${version}.tbz";
19 sha256 = "sha256-JdxByUNtmrz1bKrZoQWUT/c0YEG4zGoqZUq4hItlc3I=";
22 minimalOCamlVersion = "4.02";
25 nativeBuildInputs = [ pkg-config ];
29 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ ApplicationServices ];
33 stdenv.hostPlatform.isDarwin
34 # https://github.com/Chris00/ocaml-cairo/issues/19
35 || lib.versionAtLeast ocaml.version "4.10"
39 homepage = "https://github.com/Chris00/ocaml-cairo";
40 description = "Binding to Cairo, a 2D Vector Graphics Library";
42 This is a binding to Cairo, a 2D graphics library with support for
43 multiple output devices. Currently supported output targets include
44 the X Window System, Quartz, Win32, image buffers, PostScript, PDF,
47 license = licenses.lgpl3;
48 maintainers = with maintainers; [