Change:
The Electrum wallet GUI fails with a coredump because the Qt platform is unable to load plugins. To Reproduce Steps to reproduce the behavior: Expected behavior Electrum should launch without crashing. Screenshots Additional context The electrum package already uses the Qt wrappers, and they worked fine at some point. I've compared the generated scripts to those of , which is working, and I didn't see any difference that could explain the problem. Notify maintainers <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. -- Metadata system: host os: multi-user?: sandbox: version: nixpkgs: Maintainer information:
will fix, but it will take a while, promise.
Curiously, works for me on Wayland (sway)
I may have caused this when I asked that the latest Qt be used at (I also use Sway). are you using X or Wayland?
I'm using X (with Xmonad). For now, I'm using a pinned Nixpkgs to get it working again.
Which nixpkgs commit did you pin?
I had it pinned to
I solved this way: export QTPLUGINPATH=/usr/lib/qt/plugins
This is still happening for me on 20.09 with X/Plasma ; will it only be fixed in unstable / 21.03 ?
This works on master, but fails on 20.09 with the above xcb error for me. For me personally, at least, I'm fine working around with a master branch build, but it might be nice to get it going on 21.09 too.
Yeah, same issue. Any workarounds? doesn't work
See . Since it's a bitcoin wallet, updates to it can be crucial, so we should backport updates to it from master.
Should be fixed via

Discussion:
}: let <del> version = "4.0.2"; # electrum is not compatible with dnspython 2.0.0 yet # use the latest 1.x release instead py = python3.override { packageOverrides = self: super: { dnspython = super.dnspython_1; }; }; </del> <ins> version = "4.0.9"; </ins> libsecp256k1_name = if stdenv.isLinux then "libsecp256k1.so.0"

owner = "spesmilo"; repo = "electrum"; rev = version; <del> sha256 = "1xpkbard994n1gwl95b558x69k1m1m258bc220nxrajg1pywh90f"; </del> <ins> sha256 = "0cmdyfabllw4wnpqpdxp3l6hjnm0cvkwxn0z8ph4x54sf4zq9iz3"; </ins> extraPostFetch = '' mv $out ./all

}; in <del> py.pkgs.buildPythonApplication { </del> <ins> python3.pkgs.buildPythonApplication { </ins> pname = "electrum"; inherit version; src = fetchurl { url = "https://download.electrum.org/${version}/Electrum-${version}.tar.gz"; <del> sha256 = "05ibrr6ysf6fncs1pimhxvyr7d659jwj2r2a9pdd3cmn1dxzy2w1"; </del> <ins> sha256 = "1fvjiagi78f32nxgr2rx8jas8hxfvpp1c8fpfcalvykmlhdc2gva"; </ins> }; postUnpack = ''

nativeBuildInputs = stdenv.lib.optionals enableQt [ wrapQtAppsHook ]; <del> propagatedBuildInputs = with py.pkgs; [ </del> <ins> propagatedBuildInputs = with python3.pkgs; [ </ins> aiohttp aiohttp-socks aiorpcx attrs bitstring <ins> cryptography </ins> dnspython <del> ecdsa </del> jsonrpclib-pelix matplotlib pbkdf2 protobuf <del> pyaes pycryptodomex </del> pysocks qrcode requests tlslite-ng # plugins ckcc-protocol keepkey

wrapQtApp $out/bin/electrum ''; <del> checkInputs = with py.pkgs; [ pytest ]; </del> <ins> checkInputs = with python3.pkgs; [ pytestCheckHook pycryptodomex ]; pytestFlagsArray = [ "electrum/tests" ]; disabledTests = [ "test_loop"  # test tries to bind 127.0.0.1 causing permission error ]; </ins> <del> checkPhase = '' py.test electrum/tests </del> <ins> postCheck = '' </ins> $out/bin/electrum help >/dev/null '';

homepage = "https://electrum.org/"; license = licenses.mit; platforms = platforms.all; <del> maintainers = with maintainers; [ ehmry joachifm np ]; </del> <ins> maintainers = with maintainers; [ ehmry joachifm np prusnak ]; </ins> }; }

electron-cash = libsForQt5.callPackage ../applications/misc/electron-cash { }; <del> electrum = libsForQt514.callPackage ../applications/misc/electrum { }; </del> <ins> electrum = libsForQt5.callPackage ../applications/misc/electrum { }; </ins> electrum-dash = callPackage ../applications/misc/electrum/dash.nix { };