forked from M-Labs/thermostat
Compare commits
2 Commits
9848c65de5
...
c8b6bf01d1
Author | SHA1 | Date | |
---|---|---|---|
c8b6bf01d1 | |||
a7aa78a608 |
17
flake.nix
17
flake.nix
@ -49,6 +49,19 @@
|
|||||||
dontFixup = true;
|
dontFixup = true;
|
||||||
auditable = false;
|
auditable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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
|
||||||
|
'';
|
||||||
in {
|
in {
|
||||||
packages.x86_64-linux = {
|
packages.x86_64-linux = {
|
||||||
inherit thermostat;
|
inherit thermostat;
|
||||||
@ -64,9 +77,13 @@
|
|||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
rust llvm
|
rust llvm
|
||||||
openocd dfu-util rlwrap
|
openocd dfu-util rlwrap
|
||||||
|
pytec-dev-wrappers
|
||||||
] ++ (with python3Packages; [
|
] ++ (with python3Packages; [
|
||||||
numpy matplotlib
|
numpy matplotlib
|
||||||
]);
|
]);
|
||||||
|
shellHook = ''
|
||||||
|
export PYTHONPATH=`pwd`/pytec:$PYTHONPATH
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
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
Loading…
Reference in New Issue
Block a user