From 237e7a71acf2c921c2d1cf59af64aa750d05459e Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sat, 16 Aug 2025 21:50:35 +0300 Subject: [PATCH] gnuradio.unwrapped: use lib.cmakeBool for feature flags --- pkgs/applications/radio/gnuradio/shared.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 = [