cf24550e91
0.3.5 is just a patch-release (no code changes). More important is the patch to the upload-command. It now uses the nix-supplied avrdude instead of some random avrdude it finds (in the arduino distribution or wherever). Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
39 lines
1.3 KiB
Nix
39 lines
1.3 KiB
Nix
{ stdenv, fetchurl, buildPythonPackage, pythonPackages, minicom
|
|
, avrdude, arduino_core, avrgcclibc }:
|
|
|
|
buildPythonPackage rec {
|
|
name = "ino-0.3.5";
|
|
namePrefix = "";
|
|
|
|
src = fetchurl {
|
|
url = "http://pypi.python.org/packages/source/i/ino/${name}.tar.gz";
|
|
sha256 = "1v7z3da31cv212k28aci269qkg92p377fm7i76rymjjpjra7payv";
|
|
};
|
|
|
|
# TODO: add avrgcclibc, it must be rebuild with C++ support
|
|
propagatedBuildInputs =
|
|
[ arduino_core avrdude minicom pythonPackages.configobj
|
|
pythonPackages.jinja2 pythonPackages.pyserial ];
|
|
|
|
patchPhase = ''
|
|
echo "Patching Arduino distribution path"
|
|
sed -i 's@/usr/local/share/arduino@${arduino_core}/share/arduino@g' \
|
|
ino/environment.py
|
|
sed -i -e 's@argparse@@' -e 's@ordereddict@@' \
|
|
requirements.txt
|
|
sed -i -e 's@from ordereddict@from collections@' \
|
|
ino/environment.py ino/utils.py
|
|
|
|
# Patch the upload command so it uses the correct avrdude
|
|
substituteInPlace ino/commands/upload.py \
|
|
--replace "self.e['avrdude']" "'${avrdude}/bin/avrdude'" \
|
|
--replace "'-C', self.e['avrdude.conf']," ""
|
|
'';
|
|
|
|
meta = {
|
|
description = "Command line toolkit for working with Arduino hardware";
|
|
homepage = http://inotool.org/;
|
|
license = stdenv.lib.licenses.mit;
|
|
maintainers = with stdenv.lib.maintainers; [ antono the-kenny ];
|
|
};
|
|
}
|