From 6db7d02ec9daded76bb1d05b8609c0e90078da20 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 8 Dec 2024 15:19:29 +0100 Subject: [PATCH] esphome: fix font component support Nixpkgs retired the protobuf library version we need for esphome, so now we can only use the native python implementation until its gflanguages dependency catches up again. Closes: #362193 --- 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 b0e67470f570..ba243c4613a0 100644 --- a/pkgs/tools/misc/esphome/default.nix +++ b/pkgs/tools/misc/esphome/default.nix @@ -106,6 +106,8 @@ python.pkgs.buildPythonApplication rec { "--prefix PYTHONPATH : ${python.pkgs.makePythonPath dependencies}" # will show better error messages "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ stdenv.cc.cc ]}" "--set ESPHOME_USE_SUBPROCESS ''" + # https://github.com/NixOS/nixpkgs/issues/362193 + "--set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION 'python'" ]; # Needed for tests