GNU Radio: Difference between revisions
imported>Chuangzhu add extraPythonPackages |
imported>Chuangzhu add gnuradio.pythonEnv |
||
| Line 15: | Line 15: | ||
]; | ]; | ||
} | } | ||
</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> | </syntaxhighlight> | ||