about summary refs log tree commit diff
path: root/pkgs/development/arduino
diff options
context:
space:
mode:
authorMoritz Ulrich <moritz@tarn-vedra.de>2013-08-15 23:14:36 +0200
committerMoritz Ulrich <moritz@tarn-vedra.de>2013-08-15 23:14:36 +0200
commitcf24550e9110ca87aa866312c9fbbddd840190ec (patch)
tree042b3c1e7e820fcc061b0ba39ce0273623530a14 /pkgs/development/arduino
parent3a008f7a1d723a3b701cc525da46aa01f2baeb8d (diff)
downloadnixlib-cf24550e9110ca87aa866312c9fbbddd840190ec.tar
nixlib-cf24550e9110ca87aa866312c9fbbddd840190ec.tar.gz
nixlib-cf24550e9110ca87aa866312c9fbbddd840190ec.tar.bz2
nixlib-cf24550e9110ca87aa866312c9fbbddd840190ec.tar.lz
nixlib-cf24550e9110ca87aa866312c9fbbddd840190ec.tar.xz
nixlib-cf24550e9110ca87aa866312c9fbbddd840190ec.tar.zst
nixlib-cf24550e9110ca87aa866312c9fbbddd840190ec.zip
Update inotool and fix `ino upload'.
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>
Diffstat (limited to 'pkgs/development/arduino')
-rw-r--r--pkgs/development/arduino/ino/default.nix15
1 files changed, 10 insertions, 5 deletions
diff --git a/pkgs/development/arduino/ino/default.nix b/pkgs/development/arduino/ino/default.nix
index 100b3aa87f13..95afc8f708f0 100644
--- a/pkgs/development/arduino/ino/default.nix
+++ b/pkgs/development/arduino/ino/default.nix
@@ -1,12 +1,12 @@
 { stdenv, fetchurl, buildPythonPackage, pythonPackages, minicom
 , avrdude, arduino_core, avrgcclibc }:
 
-buildPythonPackage {
-  name = "ino-0.3.4";
+buildPythonPackage rec {
+  name = "ino-0.3.5";
   namePrefix = "";
 
   src = fetchurl {
-    url = "http://pypi.python.org/packages/source/i/ino/ino-0.3.4.tar.gz";
+    url = "http://pypi.python.org/packages/source/i/ino/${name}.tar.gz";
     sha256 = "1v7z3da31cv212k28aci269qkg92p377fm7i76rymjjpjra7payv";
   };
 
@@ -23,12 +23,17 @@ buildPythonPackage {
         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 = "MIT";
-    maintainers = [ stdenv.lib.maintainers.antono ];
+    license = stdenv.lib.licenses.mit;
+    maintainers = with stdenv.lib.maintainers; [ antono the-kenny ];
   };
 }