From 6c1acf58d92f696dacaeff9c82b92232d2ccb797 Mon Sep 17 00:00:00 2001 From: Luna Simons Date: Sun, 28 Jan 2024 16:57:31 +0100 Subject: [PATCH] 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++. --- pkgs/tools/misc/esphome/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/misc/esphome/default.nix b/pkgs/tools/misc/esphome/default.nix index 4b3b8c0e0c31..16aa65b83beb 100644 --- a/pkgs/tools/misc/esphome/default.nix +++ b/pkgs/tools/misc/esphome/default.nix @@ -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 ''" ];