THB2/shell.nix
2025-02-07 23:13:28 +01:00

9 lines
280 B
Nix

{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs.buildPackages; [
python3.pkgs.pyserial
(writeShellScriptBin "flash-thb1" ''
python3 rdwr_phy62x2.py -p /dev/ttyUSB0 -b 115200 -e -r wh ./bin/BOOT_THB1_v*.hex
'')
];
}