mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 17:23:34 +00:00
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:
parent
ab047b5e18
commit
6c1acf58d9
@ -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 ''"
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user