diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2023-09-13 12:34:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-13 12:34:58 +0200 |
commit | a2f7126deba71e441c0e284ba991e84ef17d418c (patch) | |
tree | b73d21bb6b0f91751f91b6e389e79a5c82851e99 /pkgs/applications/radio/gnuradio | |
parent | c75843c2a3af9e76ef1d5ceb68a240a894f7162a (diff) | |
parent | 2bdd5de8915f045a55d24f9b019c86179bcc6783 (diff) | |
download | nixpkgs-a2f7126deba71e441c0e284ba991e84ef17d418c.tar nixpkgs-a2f7126deba71e441c0e284ba991e84ef17d418c.tar.gz nixpkgs-a2f7126deba71e441c0e284ba991e84ef17d418c.tar.bz2 nixpkgs-a2f7126deba71e441c0e284ba991e84ef17d418c.tar.lz nixpkgs-a2f7126deba71e441c0e284ba991e84ef17d418c.tar.xz nixpkgs-a2f7126deba71e441c0e284ba991e84ef17d418c.tar.zst nixpkgs-a2f7126deba71e441c0e284ba991e84ef17d418c.zip |
Merge pull request #253847 from doronbehar/pkg/soapysdr
soapysdr: cleanup expression; 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 c38c89fc459..ac08d17397f 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 |