forked from M-Labs/thermostat
Add pytec runnables
This commit is contained in:
parent
bef73df401
commit
9af7f728e9
15
flake.nix
15
flake.nix
@ -118,6 +118,20 @@
|
||||
];
|
||||
};
|
||||
|
||||
pytec-dev-wrappers = pkgs.runCommandNoCC "pytec-dev-wrappers" {}
|
||||
''
|
||||
mkdir -p $out/bin
|
||||
for program in ${self}/pytec/*.py; do
|
||||
if [ -x $program ]; then
|
||||
progname=`basename -s .py $program`
|
||||
outname=$out/bin/$progname
|
||||
echo "#!${pkgs.bash}/bin/bash" >> $outname
|
||||
echo "exec python3 -m pytec.$progname \"\$@\"" >> $outname
|
||||
chmod 755 $outname
|
||||
fi
|
||||
done
|
||||
'';
|
||||
|
||||
thermostat_gui = pkgs.python3Packages.buildPythonPackage {
|
||||
pname = "thermostat_gui";
|
||||
version = "0.0.0";
|
||||
@ -163,6 +177,7 @@
|
||||
rust
|
||||
openocd
|
||||
dfu-util
|
||||
pytec-dev-wrappers
|
||||
]
|
||||
++ (with python3Packages; [
|
||||
numpy
|
||||
|
0
pytec/autotune.py
Normal file → Executable file
0
pytec/autotune.py
Normal file → Executable file
0
pytec/plot.py
Normal file → Executable file
0
pytec/plot.py
Normal file → Executable file
0
pytec/tec_qt.py
Normal file → Executable file
0
pytec/tec_qt.py
Normal file → Executable file
Loading…
Reference in New Issue
Block a user