You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

shell.nix 1.0KB

1234567891011121314151617181920212223242526272829
  1. let
  2. pkgs = import <nixpkgs> { };
  3. pyqtgraph-qt5 = pkgs.python3Packages.buildPythonPackage rec {
  4. name = "pyqtgraph_qt5-${version}";
  5. version = "0.10.0";
  6. doCheck = false;
  7. src = pkgs.fetchFromGitHub {
  8. owner = "pyqtgraph";
  9. repo = "pyqtgraph";
  10. rev = "1426e334e1d20542400d77c72c132b04c6d17ddb";
  11. sha256 = "1079haxyr316jf0wpirxdj0ry6j8mr16cqr0dyyrd5cnxwl7zssh";
  12. };
  13. propagatedBuildInputs = with pkgs.python3Packages; [ scipy numpy pyqt5 pyopengl ];
  14. };
  15. bitstream = pkgs.fetchurl {
  16. url = "https://www.nuand.com/fpga/v0.11.0/hostedxA4.rbf";
  17. sha256 = "c172e35c4a92cf1e0ca3b37347a84d8376b275ece16cb9c5142b72b82b16fe8e";
  18. };
  19. in
  20. pkgs.mkShell {
  21. buildInputs = [
  22. (pkgs.python3.withPackages(ps: [ps.soapysdr-with-plugins ps.scipy ps.pyserial ps.quamash ps.pyqt5 pyqtgraph-qt5]))
  23. pkgs.libbladeRF pkgs.gqrx
  24. ];
  25. shellHook = ''
  26. ${pkgs.libbladeRF}/bin/bladeRF-cli -l ${bitstream}
  27. ${pkgs.libbladeRF}/bin/bladeRF-cli -e "set biastee rx on"
  28. '';
  29. }