at 18.03-beta 47 lines 1.6 kB view raw
1{ fetchurl, stdenv, pkgconfig, darwin, cairo, xlibsWrapper, fontconfig, freetype, libsigcxx }: 2let 3 ver_maj = "1.12"; 4 ver_min = "2"; 5in 6stdenv.mkDerivation rec { 7 name = "cairomm-${ver_maj}.${ver_min}"; 8 9 src = fetchurl { 10 url = "http://www.cairographics.org/releases/${name}.tar.gz"; 11 # gnome doesn't have the latest version ATM; beware: same name but different hash 12 # url = "mirror://gnome/sources/cairomm/${ver_maj}/${name}.tar.xz"; 13 sha256 = "16fmigxsaz85c3lgcls7biwyz8zy8c8h3jndfm54cxxas3a7zi25"; 14 }; 15 16 outputs = [ "out" "dev" ]; 17 18 nativeBuildInputs = [ pkgconfig ]; 19 propagatedBuildInputs = [ cairo libsigcxx ]; 20 buildInputs = [ fontconfig freetype ] 21 ++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ 22 ApplicationServices 23 ]); 24 25 doCheck = true; 26 27 meta = with stdenv.lib; { 28 description = "A 2D graphics library with support for multiple output devices"; 29 30 longDescription = '' 31 Cairo is a 2D graphics library with support for multiple output 32 devices. Currently supported output targets include the X 33 Window System, Quartz, Win32, image buffers, PostScript, PDF, 34 and SVG file output. Experimental backends include OpenGL 35 (through glitz), XCB, BeOS, OS/2, and DirectFB. 36 37 Cairo is designed to produce consistent output on all output 38 media while taking advantage of display hardware acceleration 39 when available (e.g., through the X Render Extension). 40 ''; 41 42 homepage = http://cairographics.org/; 43 44 license = with licenses; [ lgpl2Plus mpl10 ]; 45 platforms = platforms.unix; 46 }; 47}