diff --git a/flake.nix b/flake.nix index c745b22..39bf617 100644 --- a/flake.nix +++ b/flake.nix @@ -83,6 +83,7 @@ src = nixpkgs; patches = [ ./patches/gamepadui.patch + ./patches/esphome.patch inputs.nixpkgs-xone-fix ]; }; diff --git a/patches/esphome.patch b/patches/esphome.patch new file mode 100644 index 0000000..aa6282f --- /dev/null +++ b/patches/esphome.patch @@ -0,0 +1,19 @@ +diff --git a/pkgs/tools/misc/esphome/default.nix b/pkgs/tools/misc/esphome/default.nix +index a8ab91f8f329..81bf135a023f 100644 +--- a/pkgs/tools/misc/esphome/default.nix ++++ b/pkgs/tools/misc/esphome/default.nix +@@ -5,6 +5,7 @@ + , platformio + , esptool + , git ++, stdenv + }: + + let +@@ -76,6 +77,7 @@ python.pkgs.buildPythonApplication rec { + # git is used in esphomeyaml/writer.py + "--prefix PATH : ${lib.makeBinPath [ platformio esptool git ]}" + "--prefix PYTHONPATH : $PYTHONPATH" # will show better error messages ++ "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ stdenv.cc.cc.lib ]}" + "--set ESPHOME_USE_SUBPROCESS ''" + ];