forked from M-Labs/thermostat
Compare commits
2 Commits
f21f9257a7
...
1a3c831a06
Author | SHA1 | Date | |
---|---|---|---|
1a3c831a06 | |||
d64c83953e |
17
flake.nix
17
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,15 @@
|
||||
openocd
|
||||
dfu-util
|
||||
rlwrap
|
||||
pythermostat-dev-wrappers
|
||||
]
|
||||
++ (with python3Packages; [
|
||||
numpy
|
||||
matplotlib
|
||||
]);
|
||||
shellHook = ''
|
||||
export PYTHONPATH=`git rev-parse --show-toplevel`/pythermostat:$PYTHONPATH
|
||||
'';
|
||||
};
|
||||
|
||||
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
|
||||
|
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