forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / development / libraries / cairomm / 1.16.nix
blobcd561d00918769b62226e45a571244978c47acc6
1 { stdenv
2 , lib
3 , fetchurl
4 , boost
5 , meson
6 , ninja
7 , pkg-config
8 , cairo
9 , fontconfig
10 , libsigcxx30
11 , ApplicationServices
14 stdenv.mkDerivation rec {
15   pname = "cairomm";
16   version = "1.18.0";
18   outputs = [ "out" "dev" ];
20   src = fetchurl {
21     url = "https://www.cairographics.org/releases/cairomm-${version}.tar.xz";
22     sha256 = "uBJVOU4+qOiqiHJ20ir6iYX8ja72BpLrJAfSMEnwPPs=";
23   };
25   nativeBuildInputs = [
26     meson
27     ninja
28     pkg-config
29   ];
31   buildInputs = [
32     boost # for tests
33     fontconfig
34   ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
35     ApplicationServices
36   ];
38   propagatedBuildInputs = [
39     cairo
40     libsigcxx30
41   ];
43   mesonFlags = [
44     "-Dbuild-tests=true"
45   ];
47   # Tests fail on Darwin, possibly because of sandboxing.
48   doCheck = !stdenv.hostPlatform.isDarwin;
50   meta = with lib; {
51     description = "C++ bindings for the Cairo vector graphics library";
52     homepage = "https://www.cairographics.org/";
53     license = with licenses; [ lgpl2Plus mpl10 ];
54     maintainers = teams.gnome.members;
55     platforms = platforms.unix;
56   };