Add nix stuff
This commit is contained in:
parent
7887899e2a
commit
f6747a25de
3 changed files with 11 additions and 0 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
use nix
|
||||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
.direnv/*
|
||||||
9
shell.nix
Normal file
9
shell.nix
Normal 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
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue