2021-04-17 00:35:05 +00:00
|
|
|
{ stdenv, lib, fetchurl, buildDunePackage, ocaml, dune-configurator
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config, cairo
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "cairo2";
|
|
|
|
version = "0.6.1";
|
|
|
|
|
2021-04-17 00:35:05 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Chris00/ocaml-cairo/releases/download/${version}/cairo2-${version}.tbz";
|
|
|
|
sha256 = "1ik4qf4b9443sliq2z7x9acd40rmzvyzjh3bh98wvjklxbb84a9i";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-04-17 00:35:05 +00:00
|
|
|
buildInputs = [ cairo dune-configurator ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
doCheck = !(stdenv.isDarwin
|
|
|
|
# https://github.com/Chris00/ocaml-cairo/issues/19
|
|
|
|
|| lib.versionAtLeast ocaml.version "4.10");
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/Chris00/ocaml-cairo";
|
|
|
|
description = "Binding to Cairo, a 2D Vector Graphics Library";
|
|
|
|
longDescription = ''
|
|
|
|
This is a binding to Cairo, a 2D graphics library with support for
|
|
|
|
multiple output devices. Currently supported output targets include
|
|
|
|
the X Window System, Quartz, Win32, image buffers, PostScript, PDF,
|
|
|
|
and SVG file output.
|
|
|
|
'';
|
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
maintainers = with lib.maintainers; [ jirkamarsik vbgl ];
|
|
|
|
};
|
|
|
|
}
|