Pentatube controller in Rust with Blackpill STM32F103
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 466B

1234567891011121314151617181920212223
  1. let
  2. project = import ./default.nix {};
  3. in
  4. with project.pkgs;
  5. stdenv.mkDerivation {
  6. name = "project-env";
  7. buildInputs = with project.rustPlatform.rust; [
  8. rustc cargo gdb project.openocd
  9. ];
  10. # Set Environment Variables
  11. RUST_BACKTRACE = 1;
  12. shellHook = ''
  13. echo "Starting openocd…"
  14. ${project.openocd}/bin/openocd-stlink-blackpill -c "reset init" &
  15. # Let openocd output scroll by
  16. sleep 1
  17. echo "Run 'cargo run --release'"
  18. '';
  19. }