diff --git a/pkgs/applications/radio/gnuradio/shared.nix b/pkgs/applications/radio/gnuradio/shared.nix index 7bd1c364b83e..74864a98cf1b 100644 --- a/pkgs/applications/radio/gnuradio/shared.nix +++ b/pkgs/applications/radio/gnuradio/shared.nix @@ -64,11 +64,9 @@ in # Abuse this unavoidable "iteration" to set this flag which we want as # well - it means: Don't turn on features just because their deps are # satisfied, let only our cmakeFlags decide. - "-DENABLE_DEFAULT=OFF" - else if hasFeature feat then - "-DENABLE_${info.cmakeEnableFlag}=ON" + (lib.cmakeBool "ENABLE_DEFAULT" false) else - "-DENABLE_${info.cmakeEnableFlag}=OFF" + (lib.cmakeBool "ENABLE_${info.cmakeEnableFlag}" (hasFeature feat)) ) ) featuresInfo; disallowedReferences = [