forked from M-Labs/thermostat
Compare commits
2 Commits
f21f9257a7
...
1a3c831a06
Author | SHA1 | Date | |
---|---|---|---|
1a3c831a06 | |||
d64c83953e |
15
flake.nix
15
flake.nix
@ -69,6 +69,19 @@
|
||||
matplotlib
|
||||
];
|
||||
};
|
||||
|
||||
pythermostat-dev-wrappers = pkgs.runCommandNoCC "pythermostat-dev-wrappers" { } ''
|
||||
mkdir -p $out/bin
|
||||
for program in ${self}/pythermostat/*.py; do
|
||||
if [ -x $program ]; then
|
||||
progname=`basename -s .py $program`
|
||||
outname=$out/bin/thermostat_$progname
|
||||
echo "#!${pkgs.bash}/bin/bash" >> $outname
|
||||
echo "exec python -m $progname \"\$@\"" >> $outname
|
||||
chmod 755 $outname
|
||||
fi
|
||||
done
|
||||
'';
|
||||
in
|
||||
{
|
||||
packages.x86_64-linux = {
|
||||
@ -90,11 +103,11 @@
|
||||
openocd
|
||||
dfu-util
|
||||
rlwrap
|
||||
pythermostat-dev-wrappers
|
||||
]
|
||||
++ (with python3Packages; [
|
||||
numpy
|
||||
matplotlib
|
||||
pythermostat
|
||||
]);
|
||||
shellHook = ''
|
||||
export PYTHONPATH=`git rev-parse --show-toplevel`/pythermostat:$PYTHONPATH
|
||||
|
0
pythermostat/pythermostat/autotune.py
Normal file → Executable file
0
pythermostat/pythermostat/autotune.py
Normal file → Executable file
0
pythermostat/pythermostat/plot.py
Normal file → Executable file
0
pythermostat/pythermostat/plot.py
Normal file → Executable file
0
pythermostat/pythermostat/test.py
Normal file → Executable file
0
pythermostat/pythermostat/test.py
Normal file → Executable file
Loading…
Reference in New Issue
Block a user