2016-01-06 10:05:19 +01: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 17:12:17 +01:00
|
|
|
zlib
|
2016-01-06 10:05:19 +01:00
|
|
|
]);
|
|
|
|
|
2016-08-02 19:50:55 +02: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 10:05:19 +01:00
|
|
|
};
|
|
|
|
|
2018-01-03 17:12:17 +01:00
|
|
|
extraInstallCommands = ''
|
|
|
|
ln -s $out/bin/platformio $out/bin/pio
|
|
|
|
'';
|
|
|
|
|
2016-01-06 10:05:19 +01:00
|
|
|
runScript = "platformio";
|
|
|
|
}
|