1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-19 12:28:51 +00:00
nixpkgs/pkgs/development/libraries/cairomm/default.nix

48 lines
1.6 KiB
Nix
Raw Normal View History

2016-08-24 13:22:35 +01:00
{ fetchurl, stdenv, pkgconfig, darwin, cairo, xlibsWrapper, fontconfig, freetype, libsigcxx }:
2016-03-10 09:42:09 +00:00
let
ver_maj = "1.12";
2017-12-03 20:30:40 +00:00
ver_min = "2";
2016-03-10 09:42:09 +00:00
in
stdenv.mkDerivation rec {
2016-03-10 09:42:09 +00:00
name = "cairomm-${ver_maj}.${ver_min}";
src = fetchurl {
url = "https://www.cairographics.org/releases/${name}.tar.gz";
# gnome doesn't have the latest version ATM; beware: same name but different hash
2017-12-03 20:30:40 +00:00
# url = "mirror://gnome/sources/cairomm/${ver_maj}/${name}.tar.xz";
sha256 = "16fmigxsaz85c3lgcls7biwyz8zy8c8h3jndfm54cxxas3a7zi25";
};
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 13:22:35 +01:00
buildInputs = [ fontconfig freetype ]
++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
ApplicationServices
]);
2016-03-10 09:42:09 +00:00
doCheck = true;
meta = with stdenv.lib; {
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 = http://cairographics.org/;
license = with licenses; [ lgpl2Plus mpl10 ];
2016-08-24 13:22:35 +01:00
platforms = platforms.unix;
};
}