2023-04-11 10:52:27 +00:00
|
|
|
{ lib, buildFHSEnv, platformio-core }:
|
2018-04-07 21:00:21 +00:00
|
|
|
|
2018-01-09 18:59:33 +00:00
|
|
|
let
|
2018-04-07 21:00:21 +00:00
|
|
|
pio-pkgs = pkgs:
|
|
|
|
let
|
2023-04-01 06:33:08 +00:00
|
|
|
inherit (platformio-core) python;
|
2022-05-19 10:03:28 +00:00
|
|
|
in
|
|
|
|
(with pkgs; [
|
2022-03-29 15:29:08 +00:00
|
|
|
platformio-core
|
2018-01-03 16:12:17 +00:00
|
|
|
zlib
|
2018-05-05 06:32:09 +00:00
|
|
|
git
|
2022-05-19 10:03:28 +00:00
|
|
|
xdg-user-dirs
|
2023-04-12 07:15:47 +00:00
|
|
|
ncurses
|
2024-06-17 20:50:29 +00:00
|
|
|
udev
|
2018-04-07 21:00:21 +00:00
|
|
|
]) ++ (with python.pkgs; [
|
|
|
|
python
|
|
|
|
setuptools
|
|
|
|
pip
|
|
|
|
bottle
|
2016-01-06 09:05:19 +00:00
|
|
|
]);
|
2018-04-07 21:00:21 +00:00
|
|
|
|
2022-05-19 10:03:28 +00:00
|
|
|
in
|
2023-04-11 10:52:27 +00:00
|
|
|
buildFHSEnv {
|
2024-11-26 20:16:20 +00:00
|
|
|
pname = "platformio";
|
|
|
|
inherit (platformio-core) version;
|
2018-01-09 18:59:33 +00:00
|
|
|
|
|
|
|
targetPkgs = pio-pkgs;
|
2021-08-29 18:50:23 +00:00
|
|
|
# disabled temporarily because fastdiff no longer support 32bit
|
|
|
|
# multiPkgs = pio-pkgs;
|
2016-01-06 09:05:19 +00:00
|
|
|
|
2018-04-07 21:00:21 +00:00
|
|
|
meta = with lib; {
|
2016-08-02 17:50:55 +00:00
|
|
|
description = "Open source ecosystem for IoT development";
|
2019-09-04 05:59:22 +00:00
|
|
|
homepage = "https://platformio.org";
|
2016-08-02 17:50:55 +00:00
|
|
|
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
|
2023-04-01 06:23:02 +00:00
|
|
|
ln -s ${platformio-core.udev}/lib $out/lib
|
2018-01-03 16:12:17 +00:00
|
|
|
'';
|
|
|
|
|
2016-01-06 09:05:19 +00:00
|
|
|
runScript = "platformio";
|
|
|
|
}
|