dbus_cplusplus: support cross compilation

building examples requires executing a `dbusxx-xml2cpp` helper which is
built earlier in the build process (for the host architecture), with no
easy way to patch it for the correct architecture, so disable examples.
This commit is contained in:
Colin
2024-04-28 08:39:16 +00:00
parent 77759bd390
commit da2f92606e
@@ -52,7 +52,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dbus glib expat ];
configureFlags = [ "--disable-ecore" "--disable-tests" ];
configureFlags = [
"--disable-ecore"
"--disable-tests"
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
"--disable-examples"
];
meta = with lib; {
homepage = "https://dbus-cplusplus.sourceforge.net";