summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/applications/misc/electrum/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/applications/misc/electrum/default.nix b/pkgs/applications/misc/electrum/default.nix
index 6835db35b60..40fc10a5673 100644
--- a/pkgs/applications/misc/electrum/default.nix
+++ b/pkgs/applications/misc/electrum/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, python3, python3Packages, zbar }:
+{ stdenv, fetchurl, python3, python3Packages, zbar, fetchpatch }:
 
 python3Packages.buildPythonApplication rec {
   name = "electrum-${version}";
@@ -9,6 +9,15 @@ python3Packages.buildPythonApplication rec {
     sha256 = "01dnqiazjl2avrmdiq68absjvcfv24446y759z2s9dwk8ywzjkrg";
   };
 
+  patches = [
+    # Trezor compat patch should be included in electrum > 3.0.6
+    (fetchpatch {
+      name = "trezor-compat.patch";
+      url = "https://patch-diff.githubusercontent.com/raw/spesmilo/electrum/pull/3621.patch";
+      sha256 = "1bk1r2ikhnvw1fpfh71y4za2lnskcbkv50k8ynjxi5slx2wrfpl0";
+    })
+  ];
+
   propagatedBuildInputs = with python3Packages; [
     dnspython
     ecdsa