2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchurl, dbus, glib, pkg-config, expat }:
|
2012-04-06 01:53:20 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "dbus-cplusplus";
|
2012-04-06 01:53:20 +02:00
|
|
|
version = "0.9.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/dbus-cplusplus/dbus-c%2B%2B/0.9.0/libdbus-c%2B%2B-0.9.0.tar.gz";
|
2019-08-15 14:41:18 +02:00
|
|
|
name = "${pname}-${version}.tar.gz";
|
2012-04-06 01:53:20 +02:00
|
|
|
sha256 = "0qafmy2i6dzx4n1dqp6pygyy6gjljnb7hwjcj2z11c1wgclsq4dw";
|
|
|
|
};
|
|
|
|
|
2018-02-18 13:59:42 +01:00
|
|
|
patches = [
|
|
|
|
(fetchurl {
|
|
|
|
name = "gcc-4.7.patch";
|
|
|
|
url = "http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/"
|
|
|
|
+ "dbus-c%2B%2B/files/dbus-c%2B%2B-0.9.0-gcc-4.7.patch";
|
|
|
|
sha256 = "0rwcz9pvc13b3yfr0lkifnfz0vb5q6dg240bzgf37ni4s8rpc72g";
|
|
|
|
})
|
|
|
|
(fetchurl {
|
|
|
|
name = "writechar.patch"; # since gcc7
|
|
|
|
url = "https://src.fedoraproject.org/cgit/rpms/dbus-c++.git/plain/"
|
|
|
|
+ "dbus-c++-writechar.patch?id=7f371172f5c";
|
|
|
|
sha256 = "1kkg4gbpm4hp87l25zw2a3r9c58g7vvgzcqgiman734i66zsbb9l";
|
|
|
|
})
|
|
|
|
(fetchurl {
|
|
|
|
name = "threading.patch"; # since gcc7
|
|
|
|
url = "https://src.fedoraproject.org/cgit/rpms/dbus-c++.git/plain/"
|
|
|
|
+ "dbus-c++-threading.patch?id=7f371172f5c";
|
|
|
|
sha256 = "1h362anx3wyxm5lq0v8girmip1jmkdbijrmbrq7k5pp47zkhwwrq";
|
|
|
|
})
|
|
|
|
];
|
2013-08-27 10:49:12 +02:00
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 23:26:13 +02:00
|
|
|
buildInputs = [ dbus glib expat ];
|
2012-04-06 01:53:20 +02:00
|
|
|
|
2019-01-04 20:33:50 +01:00
|
|
|
configureFlags = [ "--disable-ecore" "--disable-tests" ];
|
2012-04-06 01:53:20 +02:00
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://dbus-cplusplus.sourceforge.net";
|
2012-04-06 01:53:20 +02:00
|
|
|
description = "C++ API for D-BUS";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|