3
0
Fork 0
forked from mirrors/nixpkgs

esphome: add libstdc++ for stub generation

ESPHome requires libstdc++ when compiling stubs for its modules. We add the library to LD_LIBRARY_PATH so it can discover and use libstdc++.
This commit is contained in:
Luna Simons 2024-01-28 16:57:31 +01:00
parent ab047b5e18
commit 6c1acf58d9
No known key found for this signature in database
GPG key ID: FAB9C1BCA0FED262

View file

@ -7,6 +7,7 @@
, esptool
, git
, inetutils
, stdenv
}:
let
@ -81,6 +82,7 @@ python.pkgs.buildPythonApplication rec {
# inetutils is used in esphome/dashboard/status/ping.py
"--prefix PATH : ${lib.makeBinPath [ platformio esptool git inetutils ]}"
"--prefix PYTHONPATH : $PYTHONPATH" # will show better error messages
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ stdenv.cc.cc.lib ]}"
"--set ESPHOME_USE_SUBPROCESS ''"
];