diff options
author | Doron Behar <doron.behar@gmail.com> | 2023-09-08 11:04:16 +0300 |
---|---|---|
committer | Doron Behar <doron.behar@gmail.com> | 2023-09-08 12:50:58 +0300 |
commit | 2bdd5de8915f045a55d24f9b019c86179bcc6783 (patch) | |
tree | 8c63b153b77f529396724798e78cdde547647951 /pkgs/applications/radio/gnuradio | |
parent | 7bd68a8bde33873eea657cd79d745615b6ae412d (diff) |
gnuradio: add support for soapysdr plugins in the wrapper
Diffstat (limited to 'pkgs/applications/radio/gnuradio')
-rw-r--r-- | pkgs/applications/radio/gnuradio/wrapper.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/applications/radio/gnuradio/wrapper.nix b/pkgs/applications/radio/gnuradio/wrapper.nix index c38c89fc459b1..ac08d17397fa7 100644 --- a/pkgs/applications/radio/gnuradio/wrapper.nix +++ b/pkgs/applications/radio/gnuradio/wrapper.nix @@ -28,6 +28,27 @@ , extraPackages ? [] # For Adding additional python packaages , extraPythonPackages ? [] +, soapysdr # For it's passthru.searchPath +# soapysdr plugins we add by default. Ideally, we should have a +# soapysdrPackages = soapysdr.pkgs attribute set, but until now this wasn't +# crucial. +, soapyairspy +, soapyaudio +, soapybladerf +, soapyhackrf +, soapyremote +, soapyrtlsdr +, soapyuhd +# For adding / changing soapysdr packages, like soapsdr-with-plugins does +, extraSoapySdrPackages ? [ + soapyairspy + soapyaudio + soapybladerf + soapyhackrf + soapyremote + soapyrtlsdr + soapyuhd +] # Allow to add whatever you want to the wrapper , extraMakeWrapperArgs ? [] }: @@ -87,6 +108,10 @@ let ++ lib.optionals (extraPackages != []) [ "--prefix" "GRC_BLOCKS_PATH" ":" "${lib.makeSearchPath "share/gnuradio/grc/blocks" extraPackages}" ] + ++ lib.optionals (extraSoapySdrPackages != []) [ + "--prefix" "SOAPY_SDR_PLUGIN_PATH" ":" "${lib.makeSearchPath + soapysdr.passthru.searchPath extraSoapySdrPackages}" + ] ++ lib.optionals (unwrapped.hasFeature "gr-qtgui") # 3.7 builds with qt4 (if lib.versionAtLeast unwrapped.versionAttr.major "3.8" then |