2023-05-24 13:37:59 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, dbus, glib, pkg-config, expat }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dbus-cplusplus";
|
|
|
|
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";
|
|
|
|
name = "${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0qafmy2i6dzx4n1dqp6pygyy6gjljnb7hwjcj2z11c1wgclsq4dw";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchurl {
|
|
|
|
name = "gcc-4.7.patch";
|
2022-02-10 20:34:41 +00:00
|
|
|
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-libs/"
|
|
|
|
+ "dbus-c++/files/dbus-c++-0.9.0-gcc-4.7.patch";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0rwcz9pvc13b3yfr0lkifnfz0vb5q6dg240bzgf37ni4s8rpc72g";
|
|
|
|
})
|
2023-05-24 13:37:59 +00:00
|
|
|
(fetchpatch {
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "writechar.patch"; # since gcc7
|
2023-05-24 13:37:59 +00:00
|
|
|
url = "https://src.fedoraproject.org/rpms/dbus-c++/raw/9f515ace0594c8b2b9f0d41ffe71bc5b78d30eee/f/dbus-c++-writechar.patch";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1kkg4gbpm4hp87l25zw2a3r9c58g7vvgzcqgiman734i66zsbb9l";
|
|
|
|
})
|
2023-05-24 13:37:59 +00:00
|
|
|
(fetchpatch {
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "threading.patch"; # since gcc7
|
2023-05-24 13:37:59 +00:00
|
|
|
url = "https://src.fedoraproject.org/rpms/dbus-c++/raw/9f515ace0594c8b2b9f0d41ffe71bc5b78d30eee/f/dbus-c++-threading.patch";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1h362anx3wyxm5lq0v8girmip1jmkdbijrmbrq7k5pp47zkhwwrq";
|
|
|
|
})
|
2023-05-24 13:37:59 +00:00
|
|
|
(fetchpatch {
|
2023-02-16 17:41:37 +00:00
|
|
|
name = "template-operators.patch"; # since gcc12
|
2023-05-24 13:37:59 +00:00
|
|
|
url = "https://src.fedoraproject.org/rpms/dbus-c++/raw/9f515ace0594c8b2b9f0d41ffe71bc5b78d30eee/f/dbus-c++-template-operators.patch";
|
|
|
|
hash = "sha256-B8S7z/YH2YEQgaRsBJBBVTx8vHQhHW7z171TZmogpL8=";
|
2023-02-16 17:41:37 +00:00
|
|
|
})
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ dbus glib expat ];
|
|
|
|
|
|
|
|
configureFlags = [ "--disable-ecore" "--disable-tests" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2023-02-22 10:55:15 +00:00
|
|
|
homepage = "https://dbus-cplusplus.sourceforge.net";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "C++ API for D-BUS";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
2024-01-13 08:15:51 +00:00
|
|
|
# Broken for Musl at 2023-12-28:
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/277198
|
|
|
|
broken = stdenv.hostPlatform.isMusl;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|