2021-04-08 14:35:07 +01:00
|
|
|
{ stdenv, lib, fetchurl, buildDunePackage, ocaml, dune-configurator
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config, cairo
|
2014-10-31 13:14:17 +00:00
|
|
|
}:
|
|
|
|
|
2019-03-26 14:11:37 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "cairo2";
|
2019-05-10 12:59:51 +01:00
|
|
|
version = "0.6.1";
|
2014-10-31 13:14:17 +00:00
|
|
|
|
2021-04-08 14:35:07 +01:00
|
|
|
useDune2 = true;
|
|
|
|
|
2014-10-31 13:14:17 +00:00
|
|
|
src = fetchurl {
|
2019-03-26 14:11:37 +00:00
|
|
|
url = "https://github.com/Chris00/ocaml-cairo/releases/download/${version}/cairo2-${version}.tbz";
|
2019-05-10 12:59:51 +01:00
|
|
|
sha256 = "1ik4qf4b9443sliq2z7x9acd40rmzvyzjh3bh98wvjklxbb84a9i";
|
2014-10-31 13:14:17 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-04-08 14:35:07 +01:00
|
|
|
buildInputs = [ cairo dune-configurator ];
|
2014-10-31 13:14:17 +00:00
|
|
|
|
2020-05-16 09:43:27 +01:00
|
|
|
doCheck = !(stdenv.isDarwin
|
|
|
|
# https://github.com/Chris00/ocaml-cairo/issues/19
|
|
|
|
|| lib.versionAtLeast ocaml.version "4.10");
|
2014-10-31 13:14:17 +00:00
|
|
|
|
2019-03-26 14:11:37 +00:00
|
|
|
meta = {
|
2017-12-09 08:38:50 +00:00
|
|
|
homepage = "https://github.com/Chris00/ocaml-cairo";
|
2014-10-31 13:14:17 +00:00
|
|
|
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.
|
|
|
|
'';
|
2019-03-26 14:11:37 +00:00
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
maintainers = with lib.maintainers; [ jirkamarsik vbgl ];
|
2014-10-31 13:14:17 +00:00
|
|
|
};
|
|
|
|
}
|