From 99d6867ce838d47acf0b0dd77a27b475575fbeba Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Mon, 28 Nov 2022 14:19:41 -0800 Subject: [PATCH] esptool: compatibility with bitstring 4 --- pkgs/tools/misc/esptool/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/tools/misc/esptool/default.nix b/pkgs/tools/misc/esptool/default.nix index 609c5d74c79e..5feed7aa4a7d 100644 --- a/pkgs/tools/misc/esptool/default.nix +++ b/pkgs/tools/misc/esptool/default.nix @@ -1,5 +1,6 @@ { lib , fetchFromGitHub +, fetchpatch , python3 }: @@ -16,6 +17,11 @@ python3.pkgs.buildPythonApplication rec { patches = [ ./test-call-bin-directly.patch + (fetchpatch { + name = "bitstring-4-compatibility.patch"; + url = "https://github.com/espressif/esptool/commit/ee27a6437576797d5f58c31e1c39f3a232a71df0.patch"; + hash = "sha256-8/AzR3HK79eQQRSaGEKU4YKn/piPCPjm/G9pvizKuUE="; + }) ]; propagatedBuildInputs = with python3.pkgs; [