about summary refs log tree commit diff
path: root/pkgs/development/arduino/ino/default.nix
blob: 84961f2af59c5c87d00607bb3bc91bfd76f98839 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchurl, buildPythonPackage, minicom, avrdude, arduino_core, avrgcclibc }:

buildPythonPackage {
  name = "ino-0.3.4";
  namePrefix = "";

  src = fetchurl {
    url = "http://pypi.python.org/packages/source/i/ino/ino-0.3.4.tar.gz";
    sha256 = "1v7z3da31cv212k28aci269qkg92p377fm7i76rymjjpjra7payv";
  };

  propagatedBuildInputs = [ minicom avrdude arduino_core avrgcclibc ];

  patchPhase = ''
    echo "Patching Arduino distribution path"
    sed -i 's@/usr/local/share/arduino@${arduino_core}/share/arduino@g' ino/environment.py
  '';

  doCheck = false;

  meta = {
    description = "Command line toolkit for working with Arduino hardware";
    homepage = http://inotool.org/;
    license = "MIT";
    maintainers = [ stdenv.lib.maintainers.antono ];
  };
}