14 stdenv.mkDerivation rec {
18 outputs = [ "out" "dev" ];
21 url = "https://www.cairographics.org/releases/cairomm-${version}.tar.xz";
22 sha256 = "amO/mKl92isPVeNNG18/uQnvi3D5uNOCyx/zl459wT8=";
34 ] ++ lib.optionals stdenv.isDarwin [
38 propagatedBuildInputs = [
48 # Meson is no longer able to pick up Boost automatically.
49 # https://github.com/NixOS/nixpkgs/issues/86131
50 BOOST_INCLUDEDIR = "${lib.getDev boost}/include";
51 BOOST_LIBRARYDIR = "${lib.getLib boost}/lib";
53 # Tests fail on Darwin, possibly because of sandboxing.
54 doCheck = !stdenv.isDarwin;
57 description = "A 2D graphics library with support for multiple output devices";
59 Cairo is a 2D graphics library with support for multiple output
60 devices. Currently supported output targets include the X
61 Window System, Quartz, Win32, image buffers, PostScript, PDF,
62 and SVG file output. Experimental backends include OpenGL
63 (through glitz), XCB, BeOS, OS/2, and DirectFB.
65 Cairo is designed to produce consistent output on all output
66 media while taking advantage of display hardware acceleration
67 when available (e.g., through the X Render Extension).
69 homepage = "https://www.cairographics.org/";
70 license = with licenses; [ lgpl2Plus mpl10 ];
71 maintainers = teams.gnome.members;
72 platforms = platforms.unix;