about summary refs log tree commit diff
path: root/pkgs/applications/radio/gnuradio
diff options
context:
space:
mode:
authorDoron Behar <doron.behar@gmail.com>2024-04-28 14:36:32 +0300
committerDoron Behar <doron.behar@gmail.com>2024-05-01 09:14:11 +0300
commit751c57bb7d9d6cd32721c48e9df722a961254819 (patch)
tree04a6f9b00bd10047373b2a01af4985323cba8dba /pkgs/applications/radio/gnuradio
parentc9739a9d69e1024813300ff0ab6f1a0a7340cbe7 (diff)
gnuradio: add uhd's python API to gnuradio's wrapper
Diffstat (limited to 'pkgs/applications/radio/gnuradio')
-rw-r--r--pkgs/applications/radio/gnuradio/wrapper.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/radio/gnuradio/wrapper.nix b/pkgs/applications/radio/gnuradio/wrapper.nix
index ac08d17397fa7..fdaa76f6f7e8e 100644
--- a/pkgs/applications/radio/gnuradio/wrapper.nix
+++ b/pkgs/applications/radio/gnuradio/wrapper.nix
@@ -58,6 +58,10 @@ let
   # may wish to wrap GR without python support.
   pythonPkgs = extraPythonPackages
     ++ [ (unwrapped.python.pkgs.toPythonModule unwrapped) ]
+    ++ unwrapped.passthru.uhd.pythonPath
+    ++ lib.optionals (unwrapped.passthru.uhd.pythonPath != []) [
+      (unwrapped.python.pkgs.toPythonModule unwrapped.passthru.uhd)
+    ]
     # Add the extraPackages as python modules as well
     ++ (builtins.map unwrapped.python.pkgs.toPythonModule extraPackages)
     ++ lib.flatten (lib.mapAttrsToList (