From 6a4744a09436803e6a0865fe7c2ed2e3c4cd5497 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Tue, 15 Dec 2020 12:31:32 +0200 Subject: [PATCH] gnuradio: Remove qt5 and gtk from passthru if not used Attributes such as gnuradioMinimal built without gui support should not have the `qt` and `gtk` attributes in it's passthru. --- pkgs/applications/radio/gnuradio/shared.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/radio/gnuradio/shared.nix b/pkgs/applications/radio/gnuradio/shared.nix index 9b354d5b960c..271819e60724 100644 --- a/pkgs/applications/radio/gnuradio/shared.nix +++ b/pkgs/applications/radio/gnuradio/shared.nix @@ -103,9 +103,11 @@ rec { features featuresInfo python - qt - gtk ; + } // lib.optionalAttrs (hasFeature "gr-qtgui" features) { + inherit qt; + } // lib.optionalAttrs (hasFeature "gnuradio-companion" features) { + inherit gtk; }; # Wrapping is done with an external wrapper dontWrapPythonPrograms = true;