3
0
Fork 0
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:
Bjørn Forsman 2014-03-07 23:06:15 +01:00
parent 34caf106da
commit 084ff142ad

View file

@ -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"