GNU Radio: Difference between revisions

imported>Chuangzhu
create the page with usage with extra packages
 
Klinger (talk | contribs)
m added to Category:Applications
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
[https://www.gnuradio.org/ GNU Radio] is a free and opensource Software Defined Radio platform. NixOS supports currently maintained versions 3.9, 3.8, 3.7.
[https://www.gnuradio.org/ GNU Radio] is a free and opensource Software Defined Radio platform. NixOS supports currently maintained versions 3.10, 3.9, 3.8.


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
Line 8: Line 8:
         osmosdr
         osmosdr
         limesdr
         limesdr
      ];
      extraPythonPackages = with gnuradio3_8.python.pkgs; [
        numpy
       ];
       ];
     })
     })
Line 13: Line 16:
}
}
</syntaxhighlight>
</syntaxhighlight>
To directly run generated Python programs, you can use {{ic|gnuradio.pythonEnv}}. For example:
<syntaxhighlight lang="bash">
$ nix-shell -p '(gnuradio.override { extraPackages = [ gnuradioPackages.osmosdr ]; }).pythonEnv' qt5.qtwayland
[nix-shell:~]$ ./default.py
</syntaxhighlight>
[[Category:Applications]]