2018-01-09 18:59:33 +00:00
|
|
|
{ stdenv, lib, buildFHSUserEnv
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
pio-pkgs = pkgs: (with pkgs;
|
2016-01-06 09:05:19 +00:00
|
|
|
[
|
|
|
|
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
|
|
|
]);
|
2018-01-09 18:59:33 +00:00
|
|
|
in
|
|
|
|
buildFHSUserEnv {
|
|
|
|
name = "platformio";
|
|
|
|
|
|
|
|
targetPkgs = pio-pkgs;
|
|
|
|
multiPkgs = pio-pkgs;
|
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";
|
|
|
|
}
|