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-27 17:41:24 +00:00
parent 77759bd390
commit f59a0e42ec
1 changed files with 6 additions and 1 deletions

View File

@ -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";