Merge pull request #12062 from mogorman/platformio
platformio: init at 2.7.0
This commit is contained in:
33
pkgs/development/arduino/platformio/chrootenv.nix
Normal file
33
pkgs/development/arduino/platformio/chrootenv.nix
Normal file
@@ -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";
|
||||
}
|
||||
11
pkgs/development/arduino/platformio/default.nix
Normal file
11
pkgs/development/arduino/platformio/default.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
{ pkgs, newScope }:
|
||||
|
||||
let
|
||||
callPackage = newScope self;
|
||||
|
||||
self = rec {
|
||||
platformio-chrootenv = callPackage ./chrootenv.nix { };
|
||||
};
|
||||
|
||||
in self
|
||||
Reference in New Issue
Block a user