1{
2 fetchurl,
3 stdenv,
4 lib,
5 pkg-config,
6 boost,
7 cairo,
8 fontconfig,
9 libsigcxx,
10 meson,
11 ninja,
12}:
13
14stdenv.mkDerivation rec {
15 pname = "cairomm";
16 version = "1.14.5";
17
18 outputs = [
19 "out"
20 "dev"
21 ];
22
23 src = fetchurl {
24 url = "https://www.cairographics.org/releases/cairomm-${version}.tar.xz";
25 sha256 = "cBNiA1QMiE6Jzhye37Y2m5lTk39s1ZbZfHjJdYpdSNs=";
26 };
27
28 nativeBuildInputs = [
29 meson
30 ninja
31 pkg-config
32 ];
33
34 buildInputs = [
35 boost # for tests
36 fontconfig
37 ];
38
39 propagatedBuildInputs = [
40 cairo
41 libsigcxx
42 ];
43
44 mesonFlags = [
45 "-Dbuild-tests=true"
46 ];
47
48 doCheck = !stdenv.hostPlatform.isDarwin;
49
50 meta = with lib; {
51 description = "C++ bindings for the Cairo vector graphics library";
52 homepage = "https://www.cairographics.org/";
53 license = with licenses; [
54 lgpl2Plus
55 mpl10
56 ];
57 platforms = platforms.unix;
58 };
59}