diff --git a/flake.nix b/flake.nix index 660ebea..3463942 100644 --- a/flake.nix +++ b/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 diff --git a/pytec/autotune.py b/pytec/autotune.py old mode 100644 new mode 100755 diff --git a/pytec/plot.py b/pytec/plot.py old mode 100644 new mode 100755 diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py old mode 100644 new mode 100755