Add nix stuff

This commit is contained in:
Jakob Lechner 2025-02-07 23:13:28 +01:00
parent 7887899e2a
commit f6747a25de
3 changed files with 11 additions and 0 deletions

9
shell.nix Normal file
View file

@ -0,0 +1,9 @@
{ 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
'')
];
}