1 { lib, stdenv, fetchurl, dbus, glib, pkg-config, expat }:
3 stdenv.mkDerivation rec {
4 pname = "dbus-cplusplus";
8 url = "mirror://sourceforge/dbus-cplusplus/dbus-c%2B%2B/0.9.0/libdbus-c%2B%2B-0.9.0.tar.gz";
9 name = "${pname}-${version}.tar.gz";
10 sha256 = "0qafmy2i6dzx4n1dqp6pygyy6gjljnb7hwjcj2z11c1wgclsq4dw";
15 name = "gcc-4.7.patch";
16 url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-libs/"
17 + "dbus-c++/files/dbus-c++-0.9.0-gcc-4.7.patch";
18 sha256 = "0rwcz9pvc13b3yfr0lkifnfz0vb5q6dg240bzgf37ni4s8rpc72g";
21 name = "writechar.patch"; # since gcc7
22 url = "https://src.fedoraproject.org/cgit/rpms/dbus-c++.git/plain/"
23 + "dbus-c++-writechar.patch?id=7f371172f5c";
24 sha256 = "1kkg4gbpm4hp87l25zw2a3r9c58g7vvgzcqgiman734i66zsbb9l";
27 name = "threading.patch"; # since gcc7
28 url = "https://src.fedoraproject.org/cgit/rpms/dbus-c++.git/plain/"
29 + "dbus-c++-threading.patch?id=7f371172f5c";
30 sha256 = "1h362anx3wyxm5lq0v8girmip1jmkdbijrmbrq7k5pp47zkhwwrq";
34 nativeBuildInputs = [ pkg-config ];
35 buildInputs = [ dbus glib expat ];
37 configureFlags = [ "--disable-ecore" "--disable-tests" ];
40 homepage = "http://dbus-cplusplus.sourceforge.net";
41 description = "C++ API for D-BUS";
42 license = licenses.gpl2Plus;
43 platforms = platforms.linux;
44 maintainers = [ maintainers.goibhniu ];