···82 qdarkstyle
83 ];
8485+ patches = [
86+ # electrum-ltc attempts to pin to aiorpcX < 0.23, but nixpkgs
87+ # has moved to newer versions.
88+ #
89+ # electrum-ltc hasn't been updated in some time, so we replicate
90+ # the patch from electrum (BTC) and alter it to be usable with
91+ # electrum-ltc.
92+ #
93+ # Similar to the BTC patch, we need to overwrite the symlink
94+ # at electrum_ltc/electrum-ltc with the patched run_electrum
95+ # in postPatch.
96+ ./ltc-aiorpcX-version-bump.patch
97+ ];
98+99+ postPatch = ''
100+ # copy the patched `/run_electrum` over `/electrum/electrum`
101+ # so the aiorpcx compatibility patch is used
102+ cp run_electrum electrum_ltc/electrum-ltc
103+ '';
104+105 preBuild = ''
106 sed -i 's,usr_share = .*,usr_share = "'$out'/share",g' setup.py
107 substituteInPlace ./electrum_ltc/ecc_fast.py \