My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/arduino/platformio/chrootenv.nix

33 lines
704 B

{ stdenv, lib, buildFHSUserEnv
}:
let
pio-pkgs = pkgs: (with pkgs;
[
python27Packages.python
python27Packages.setuptools
python27Packages.pip
python27Packages.bottle
python27Packages.platformio
zlib
]);
in
buildFHSUserEnv {
name = "platformio";
targetPkgs = pio-pkgs;
multiPkgs = pio-pkgs;
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;
};
extraInstallCommands = ''
ln -s $out/bin/platformio $out/bin/pio
'';
runScript = "platformio";
}