2019-03-26 14:11:37 +00:00
|
|
|
{ stdenv, lib, fetchurl, buildDunePackage
|
|
|
|
, pkgconfig, cairo
|
2014-10-31 13:14:17 +00:00
|
|
|
}:
|
|
|
|
|
2019-03-26 14:11:37 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "cairo2";
|
|
|
|
version = "0.6";
|
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";
|
|
|
|
sha256 = "1k2q7ipmddqnd2clybj4qb5xwzzrnl2fxnd6kv60dlzgya18lchs";
|
2014-10-31 13:14:17 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2019-03-26 14:11:37 +00:00
|
|
|
buildInputs = [ cairo ];
|
2014-10-31 13:14:17 +00:00
|
|
|
|
2019-03-26 14:11:37 +00:00
|
|
|
doCheck = !stdenv.isDarwin;
|
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
|
|
|
};
|
|
|
|
}
|