2023-04-29 16:46:19 +00:00
|
|
|
{ lib, buildFHSEnv, platformio-core }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pio-pkgs = pkgs:
|
|
|
|
let
|
2023-04-12 12:48:02 +00:00
|
|
|
inherit (platformio-core) python;
|
2022-06-16 17:23:12 +00:00
|
|
|
in
|
|
|
|
(with pkgs; [
|
2023-04-12 12:48:02 +00:00
|
|
|
platformio-core
|
2020-04-24 23:36:52 +00:00
|
|
|
zlib
|
|
|
|
git
|
2022-06-16 17:23:12 +00:00
|
|
|
xdg-user-dirs
|
2023-04-12 12:48:02 +00:00
|
|
|
ncurses
|
2020-04-24 23:36:52 +00:00
|
|
|
]) ++ (with python.pkgs; [
|
|
|
|
python
|
|
|
|
setuptools
|
|
|
|
pip
|
|
|
|
bottle
|
|
|
|
]);
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
in
|
2023-04-29 16:46:19 +00:00
|
|
|
buildFHSEnv {
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "platformio";
|
|
|
|
|
|
|
|
targetPkgs = pio-pkgs;
|
2021-09-18 10:52:07 +00:00
|
|
|
# disabled temporarily because fastdiff no longer support 32bit
|
|
|
|
# multiPkgs = pio-pkgs;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An open source ecosystem for IoT development";
|
|
|
|
homepage = "https://platformio.org";
|
|
|
|
maintainers = with maintainers; [ mog ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
ln -s $out/bin/platformio $out/bin/pio
|
2023-04-12 12:48:02 +00:00
|
|
|
ln -s ${platformio-core.udev}/lib $out/lib
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
runScript = "platformio";
|
|
|
|
}
|