diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-02-21 01:52:05 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-02-21 01:52:05 +0100 |
commit | 4ffd1c3aa242171a3314b92559cc4e4a05c8f4f7 (patch) | |
tree | 66a58661b0c01e94b1769e5765db42e5d7b8c88d /pkgs/tools/misc/esphome | |
parent | d9d37eea316a06f1b7b6451a33eb7aa51e7a7253 (diff) |
esphome: fix esp32 build
Closes: #161114
Diffstat (limited to 'pkgs/tools/misc/esphome')
-rw-r--r-- | pkgs/tools/misc/esphome/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/tools/misc/esphome/default.nix b/pkgs/tools/misc/esphome/default.nix index 69adff94d3252..4d93a592d5011 100644 --- a/pkgs/tools/misc/esphome/default.nix +++ b/pkgs/tools/misc/esphome/default.nix @@ -26,6 +26,15 @@ with python.pkgs; buildPythonApplication rec { sha256 = "sha256-RG5wTWEpBEC4zTGJ7XTmnjnhSVAllqXjcr3qYbmhqP4="; }; + patches = [ + (fetchpatch { + # Fix ESPHOME_USE_SUBPROCESS usage in the ESP32 post build script + # https://github.com/esphome/esphome/pull/3246 + url = "https://github.com/esphome/esphome/commit/dcd3f42eda5828c42feadbaa04b703c63899be54.patch"; + hash = "sha256-rF1YHRRHVHfoRs492zmIOmRGPUzxx3s673UVx5UJ3+M="; + }) + ]; + postPatch = '' # remove all version pinning (E.g tornado==5.1.1 -> tornado) sed -i -e "s/==[0-9.]*//" requirements.txt |