forked from mirrors/nixpkgs
gnuradio: wrap example programs too
Without this the examples don't work. Example: $ /nix/store/HASH-gnuradio-3.7.1/share/gnuradio/examples/uhd/usrp_am_mw_rcv.py Traceback (most recent call last): File "/nix/store/HASH-gnuradio-3.7.1/share/gnuradio/examples/uhd/usrp_am_mw_rcv.py", line 24, in <module> from gnuradio import gr, eng_notation ImportError: No module named gnuradio
This commit is contained in:
parent
34caf106da
commit
084ff142ad
|
@ -51,7 +51,7 @@ stdenv.mkDerivation rec {
|
|||
postInstall = ''
|
||||
printf "backend : Qt4Agg\n" > "$out/share/gnuradio/matplotlibrc"
|
||||
|
||||
for file in "$out"/bin/*; do
|
||||
for file in "$out"/bin/* "$out"/share/gnuradio/examples/*/*.py; do
|
||||
wrapProgram "$file" \
|
||||
--set PYTHONPATH $PYTHONPATH:$(toPythonPath "$out") \
|
||||
--set MATPLOTLIBRC "$out/share/gnuradio"
|
||||
|
|
Loading…
Reference in a new issue