about summary refs log tree commit diff
path: root/pkgs/tools/misc/esptool
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2022-11-28 14:19:41 -0800
committerRobert Schütz <github@dotlambda.de>2022-12-11 13:26:22 -0800
commit99d6867ce838d47acf0b0dd77a27b475575fbeba (patch)
tree466e5e668c634ac94a5f8044c9d196fd7354bf80 /pkgs/tools/misc/esptool
parentf963d5e2d2db8e117af97e349435b1977320546b (diff)
esptool: compatibility with bitstring 4
Diffstat (limited to 'pkgs/tools/misc/esptool')
-rw-r--r--pkgs/tools/misc/esptool/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/misc/esptool/default.nix b/pkgs/tools/misc/esptool/default.nix
index 609c5d74c79e7..5feed7aa4a7d2 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; [