2016-01-06 09:05:19 +00:00
|
|
|
{ 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
|
|
|
|
python27Packages.platformio
|
2018-01-03 16:12:17 +00:00
|
|
|
zlib
|
2016-01-06 09:05:19 +00:00
|
|
|
]);
|
|
|
|
|
2016-08-02 18:50:55 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An open source ecosystem for IoT development";
|
|
|
|
homepage = http://platformio.org;
|
|
|
|
maintainers = with maintainers; [ mog ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = with platforms; linux;
|
2016-01-06 09:05:19 +00:00
|
|
|
};
|
|
|
|
|
2018-01-03 16:12:17 +00:00
|
|
|
extraInstallCommands = ''
|
|
|
|
ln -s $out/bin/platformio $out/bin/pio
|
|
|
|
'';
|
|
|
|
|
2016-01-06 09:05:19 +00:00
|
|
|
runScript = "platformio";
|
|
|
|
}
|