1 { stdenv, lib, fetchurl, buildDunePackage, ocaml, dune-configurator, pkg-config, cairo
2 , ApplicationServices }:
9 url = "https://github.com/Chris00/ocaml-cairo/releases/download/${version}/cairo2-${version}.tbz";
10 sha256 = "sha256-QDVzUtcgXTpXNYVWQ4MMs0Xy24OP+dGaUyAYdg1GigU=";
13 minimalOCamlVersion = "4.02";
16 nativeBuildInputs = [ pkg-config ];
17 buildInputs = [ cairo dune-configurator ] ++ lib.optionals stdenv.isDarwin [ ApplicationServices ];
19 doCheck = !(stdenv.isDarwin
20 # https://github.com/Chris00/ocaml-cairo/issues/19
21 || lib.versionAtLeast ocaml.version "4.10");
24 homepage = "https://github.com/Chris00/ocaml-cairo";
25 description = "Binding to Cairo, a 2D Vector Graphics Library";
27 This is a binding to Cairo, a 2D graphics library with support for
28 multiple output devices. Currently supported output targets include
29 the X Window System, Quartz, Win32, image buffers, PostScript, PDF,
32 license = licenses.lgpl3;
33 maintainers = with maintainers; [ jirkamarsik vbgl ];