diff --git a/flake.nix b/flake.nix index af4492f..dad082e 100644 --- a/flake.nix +++ b/flake.nix @@ -68,6 +68,19 @@ matplotlib ]; }; + + 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 $progname \"\$@\"" >> $outname + chmod 755 $outname + fi + done + ''; in { packages.x86_64-linux = { @@ -89,6 +102,7 @@ openocd dfu-util rlwrap + 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