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

34 lines
704 B
Nix
Raw Normal View History

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