3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/cairo2/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchurl, buildDunePackage, ocaml, dune-configurator, pkg-config, cairo
, ApplicationServices }:
2014-10-31 13:14:17 +00:00
buildDunePackage rec {
pname = "cairo2";
2021-06-06 10:16:57 +01:00
version = "0.6.2";
2021-04-08 14:35:07 +01:00
2014-10-31 13:14:17 +00:00
src = fetchurl {
url = "https://github.com/Chris00/ocaml-cairo/releases/download/${version}/cairo2-${version}.tbz";
2021-06-06 10:16:57 +01:00
sha256 = "sha256-a7P1kiVmIwT6Fhtwxs29ffgO4iexsulxUoc9cnJmEK4=";
2014-10-31 13:14:17 +00:00
};
2021-06-06 10:16:57 +01:00
minimalOCamlVersion = "4.02";
useDune2 = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ cairo dune-configurator ] ++ lib.optionals stdenv.isDarwin [ ApplicationServices ];
2014-10-31 13:14:17 +00: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
2021-06-06 10:16:57 +01:00
meta = with lib; {
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.
'';
2021-06-06 10:16:57 +01:00
license = licenses.lgpl3;
maintainers = with maintainers; [ jirkamarsik vbgl ];
2014-10-31 13:14:17 +00:00
};
}