c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
43 lines
868 B
Nix
43 lines
868 B
Nix
{ lib, buildFHSEnv, platformio-core }:
|
|
|
|
let
|
|
pio-pkgs = pkgs:
|
|
let
|
|
inherit (platformio-core) python;
|
|
in
|
|
(with pkgs; [
|
|
platformio-core
|
|
zlib
|
|
git
|
|
xdg-user-dirs
|
|
ncurses
|
|
]) ++ (with python.pkgs; [
|
|
python
|
|
setuptools
|
|
pip
|
|
bottle
|
|
]);
|
|
|
|
in
|
|
buildFHSEnv {
|
|
name = "platformio";
|
|
|
|
targetPkgs = pio-pkgs;
|
|
# disabled temporarily because fastdiff no longer support 32bit
|
|
# multiPkgs = pio-pkgs;
|
|
|
|
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
|
|
ln -s ${platformio-core.udev}/lib $out/lib
|
|
'';
|
|
|
|
runScript = "platformio";
|
|
}
|