diff --git a/shell.nix b/shell.nix index 3ec1c56..8d6675f 100644 --- a/shell.nix +++ b/shell.nix @@ -12,10 +12,18 @@ let }; propagatedBuildInputs = with pkgs.python3Packages; [ scipy numpy pyqt5 pyopengl ]; }; + bitstream = pkgs.fetchurl { + url = "https://www.nuand.com/fpga/v0.11.0/hostedxA4.rbf"; + sha256 = "c172e35c4a92cf1e0ca3b37347a84d8376b275ece16cb9c5142b72b82b16fe8e"; + }; in pkgs.mkShell { buildInputs = [ (pkgs.python3.withPackages(ps: [ps.soapysdr-with-plugins ps.scipy ps.pyserial ps.quamash ps.pyqt5 pyqtgraph-qt5])) pkgs.libbladeRF pkgs.gqrx ]; + shellHook = '' + ${pkgs.libbladeRF}/bin/bladeRF-cli -l ${bitstream} + ${pkgs.libbladeRF}/bin/bladeRF-cli -e "set biastee rx on" + ''; }