gnuradioPackages.osmosdr: use lib.cmakeBool for PYTHON flag (#545212)

This commit is contained in:
Yohann Boniface
2026-07-24 12:16:16 +00:00
committed by GitHub
@@ -80,7 +80,7 @@ mkDerivation (finalAttrs: {
python.pkgs.pybind11
];
cmakeFlags = [
(if (gnuradio.hasFeature "python-support") then "-DENABLE_PYTHON=ON" else "-DENABLE_PYTHON=OFF")
(lib.cmakeBool "ENABLE_PYTHON" (gnuradio.hasFeature "python-support"))
]
++ finalAttrs.finalPackage.passthru.enabledFeaturesCmakeFlags;
nativeBuildInputs = [