8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
41 lines
818 B
Nix
41 lines
818 B
Nix
{ lib, buildFHSUserEnv }:
|
|
|
|
let
|
|
pio-pkgs = pkgs:
|
|
let
|
|
python = pkgs.python3.override {
|
|
packageOverrides = self: super: {
|
|
platformio = self.callPackage ./core.nix { };
|
|
};
|
|
};
|
|
in (with pkgs; [
|
|
zlib
|
|
git
|
|
]) ++ (with python.pkgs; [
|
|
python
|
|
setuptools
|
|
pip
|
|
bottle
|
|
platformio
|
|
]);
|
|
|
|
in buildFHSUserEnv {
|
|
name = "platformio";
|
|
|
|
targetPkgs = pio-pkgs;
|
|
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
|
|
'';
|
|
|
|
runScript = "platformio";
|
|
}
|