diff --git a/pkgs/development/libraries/sdbus-cpp/default.nix b/pkgs/development/libraries/sdbus-cpp/default.nix index e6ed30dd149a..dbafce9ac1cc 100644 --- a/pkgs/development/libraries/sdbus-cpp/default.nix +++ b/pkgs/development/libraries/sdbus-cpp/default.nix @@ -35,7 +35,9 @@ let ]; cmakeFlags = [ - (lib.cmakeBool "BUILD_CODE_GEN" true) + (lib.cmakeBool ( + if lib.versionOlder finalAttrs.version "2.0.0" then "BUILD_CODE_GEN" else "SDBUSCPP_BUILD_CODEGEN" + ) true) ]; meta = {