shell.nix: prepare bladeRF
This commit is contained in:
parent
970838f6e7
commit
6feda538cc
|
@ -12,10 +12,18 @@ let
|
||||||
};
|
};
|
||||||
propagatedBuildInputs = with pkgs.python3Packages; [ scipy numpy pyqt5 pyopengl ];
|
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
|
in
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
(pkgs.python3.withPackages(ps: [ps.soapysdr-with-plugins ps.scipy ps.pyserial ps.quamash ps.pyqt5 pyqtgraph-qt5]))
|
(pkgs.python3.withPackages(ps: [ps.soapysdr-with-plugins ps.scipy ps.pyserial ps.quamash ps.pyqt5 pyqtgraph-qt5]))
|
||||||
pkgs.libbladeRF pkgs.gqrx
|
pkgs.libbladeRF pkgs.gqrx
|
||||||
];
|
];
|
||||||
|
shellHook = ''
|
||||||
|
${pkgs.libbladeRF}/bin/bladeRF-cli -l ${bitstream}
|
||||||
|
${pkgs.libbladeRF}/bin/bladeRF-cli -e "set biastee rx on"
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue