2022-10-30 15:09:59 +00:00
|
|
|
{ fetchurl
|
|
|
|
, stdenv
|
|
|
|
, lib
|
|
|
|
, pkg-config
|
|
|
|
, darwin
|
|
|
|
, cairo
|
|
|
|
, fontconfig
|
|
|
|
, freetype
|
|
|
|
, libsigcxx
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
}:
|
2021-10-14 00:43:12 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cairomm";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "1.14.4";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-10-30 15:09:59 +00:00
|
|
|
url = "https://www.cairographics.org/releases/cairomm-${version}.tar.xz";
|
|
|
|
sha256 = "R0nSWisu9nzAwBTKr1yH+kZ5L8Sz7eGG+w/JMtIFUVg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildInputs = [
|
|
|
|
fontconfig
|
|
|
|
freetype
|
|
|
|
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
2020-04-24 23:36:52 +00:00
|
|
|
ApplicationServices
|
|
|
|
]);
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cairo
|
|
|
|
libsigcxx
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A 2D graphics library with support for multiple output devices";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Cairo is 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. Experimental backends include OpenGL
|
|
|
|
(through glitz), XCB, BeOS, OS/2, and DirectFB.
|
|
|
|
|
|
|
|
Cairo is designed to produce consistent output on all output
|
|
|
|
media while taking advantage of display hardware acceleration
|
|
|
|
when available (e.g., through the X Render Extension).
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = "https://www.cairographics.org/";
|
|
|
|
|
|
|
|
license = with licenses; [ lgpl2Plus mpl10 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|