Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
44 lines
876 B
Nix
44 lines
876 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
|
|
udev
|
|
]) ++ (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 = "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";
|
|
}
|