diff options
author | Matthew O'Gorman <mog@rldn.net> | 2016-01-06 04:05:19 -0500 |
---|---|---|
committer | Matthew O'Gorman <mog@rldn.net> | 2016-01-06 04:09:52 -0500 |
commit | 119a9458fbe45c6a1928eb48396b8045067a90f0 (patch) | |
tree | b2d6d77046b4c514503da2875e11381582104f55 /pkgs/development/arduino | |
parent | ecac5e9f671db3d6677f1349ad1b4354e12b6c15 (diff) |
platformio: init at 2.7.0
Diffstat (limited to 'pkgs/development/arduino')
-rw-r--r-- | pkgs/development/arduino/platformio/chrootenv.nix | 33 | ||||
-rw-r--r-- | pkgs/development/arduino/platformio/default.nix | 11 |
2 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/arduino/platformio/chrootenv.nix b/pkgs/development/arduino/platformio/chrootenv.nix new file mode 100644 index 000000000000..4aad955ec24e --- /dev/null +++ b/pkgs/development/arduino/platformio/chrootenv.nix @@ -0,0 +1,33 @@ +{ lib, buildFHSUserEnv, platformio, stdenv }: + +buildFHSUserEnv { + name = "platformio"; + + targetPkgs = pkgs: (with pkgs; + [ + python27Packages.python + python27Packages.setuptools + python27Packages.pip + python27Packages.bottle + python27Packages.platformio + zlib + ]); + multiPkgs = pkgs: (with pkgs; + [ + python27Packages.python + python27Packages.setuptools + python27Packages.pip + python27Packages.bottle + zlib + python27Packages.platformio + ]); + + meta = with stdenv.lib; { + description = "An open source ecosystem for IoT development"; + homepage = http://platformio.org; + maintainers = with maintainers; [ mog ]; + license = licenses.asl20; + }; + + runScript = "platformio"; +} diff --git a/pkgs/development/arduino/platformio/default.nix b/pkgs/development/arduino/platformio/default.nix new file mode 100644 index 000000000000..dfdd8141aaaa --- /dev/null +++ b/pkgs/development/arduino/platformio/default.nix @@ -0,0 +1,11 @@ + +{ pkgs, newScope }: + +let + callPackage = newScope self; + + self = rec { + platformio-chrootenv = callPackage ./chrootenv.nix { }; + }; + +in self |