nixpkgs/pkgs/development/arduino/platformio/chrootenv.nix

39 lines
875 B
Nix
Raw Normal View History

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
]);
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";
}