@@ -8833,15 +8833,14 @@ let
88338833 sha256 = "13aqm0dwy17ghimy7m2mxjwlyc1k7zk5icxzrs1sa896056f1dyy";
88348834 };
88358835
8836− preInstall = ''
8836+ patchPhase = ''
88378837 cp "${x_ignore_nofocus}/cpp/linux-specific/"* .
8838− sed -i 's|dlopen(library,|dlopen("libX11.so.6",|' x_ignore_nofocus.c
8838+ substituteInPlace x_ignore_nofocus.c --replace "/usr/lib/libX11.so.6" "${pkgs.xlibs.libX11}/lib/libX11.so.6"
88398839 gcc -c -fPIC x_ignore_nofocus.c -o x_ignore_nofocus.o
88408840 gcc -shared \
88418841 -Wl,${if stdenv.isDarwin then "-install_name" else "-soname"},x_ignore_nofocus.so \
88428842 -o x_ignore_nofocus.so \
8843− x_ignore_nofocus.o \
8844− ${if stdenv.isDarwin then "-lx11" else ""}
8843+ x_ignore_nofocus.o
88458844 cp -v x_ignore_nofocus.so py/selenium/webdriver/firefox/${if pkgs.stdenv.is64bit then "amd64" else "x86"}/
88468845 '';
88478846 };