forked from M-Labs/thermostat
Compare commits
2 Commits
1a3c831a06
...
f21f9257a7
Author | SHA1 | Date | |
---|---|---|---|
f21f9257a7 | |||
417eb08cd3 |
15
flake.nix
15
flake.nix
@ -69,19 +69,6 @@
|
||||
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 = {
|
||||
@ -103,11 +90,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
Executable file → Normal file
0
pythermostat/pythermostat/autotune.py
Executable file → Normal file
0
pythermostat/pythermostat/plot.py
Executable file → Normal file
0
pythermostat/pythermostat/plot.py
Executable file → Normal file
0
pythermostat/pythermostat/test.py
Executable file → Normal file
0
pythermostat/pythermostat/test.py
Executable file → Normal file
Loading…
Reference in New Issue
Block a user