2018-07-21 00:44:44 +00:00
|
|
|
{ fetchurl, stdenv, pkgconfig, darwin, cairo, fontconfig, freetype, libsigcxx }:
|
2008-02-03 13:18:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-04-25 06:46:07 +00:00
|
|
|
pname = "cairomm";
|
|
|
|
version = "1.12.2";
|
2008-02-03 13:18:15 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-04-25 06:46:07 +00:00
|
|
|
url = "https://www.cairographics.org/releases/${pname}-${version}.tar.gz";
|
2016-12-04 19:21:25 +00:00
|
|
|
# gnome doesn't have the latest version ATM; beware: same name but different hash
|
2019-04-25 06:46:07 +00:00
|
|
|
#url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2017-12-03 20:30:40 +00:00
|
|
|
sha256 = "16fmigxsaz85c3lgcls7biwyz8zy8c8h3jndfm54cxxas3a7zi25";
|
2008-02-03 13:18:15 +00:00
|
|
|
};
|
|
|
|
|
2016-11-14 02:29:18 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2016-03-10 09:42:09 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
propagatedBuildInputs = [ cairo libsigcxx ];
|
2016-08-24 12:22:35 +00:00
|
|
|
buildInputs = [ fontconfig freetype ]
|
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
|
|
|
ApplicationServices
|
|
|
|
]);
|
2014-11-08 20:21:36 +00:00
|
|
|
|
2016-03-10 09:42:09 +00:00
|
|
|
doCheck = true;
|
2008-02-03 13:18:15 +00:00
|
|
|
|
2015-05-27 19:56:04 +00:00
|
|
|
meta = with stdenv.lib; {
|
2009-01-24 21:55:16 +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).
|
|
|
|
'';
|
|
|
|
|
2019-05-04 13:59:55 +00:00
|
|
|
homepage = "https://www.cairographics.org/";
|
2009-01-24 21:55:16 +00:00
|
|
|
|
2015-05-27 19:56:04 +00:00
|
|
|
license = with licenses; [ lgpl2Plus mpl10 ];
|
2016-08-24 12:22:35 +00:00
|
|
|
platforms = platforms.unix;
|
2009-01-24 21:55:16 +00:00
|
|
|
};
|
2008-02-03 13:18:15 +00:00
|
|
|
}
|