Change:
Describe the bug Related to , virtscreen needs to be updated to work with . I've tried to do it myself based on the qutebrowser derivation but haven't been able to figure it out. To Reproduce Steps to reproduce the behavior: I've attempted to fix it like so: with the above patch applied it seems to get further but still doesn't quite work: along with those messages I get a dialog box that says "Failed to load QML": ! I must be missing something here; can someone help me out?
Hello, I'm a bot and I thank you in the name of the community for opening this issue. To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human. The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use or on the relevant files to find them. Lastly, you can always ask for help at or at .
I didn't test virtscreen but I have some tips: a look at . That's most of the definition of . You can see, e.g., that is already in . is appropriate here, because Python executables get already wrapped if using . using manually then is probably mainly for controlling exactly when something is wrapped. Python apps are already wrapped, and you probably don't want to wrap the wrapper. You rather amend them by adding to . Have a look at the reference for in the of the manual and at the of simultaneous gnome, qt and python wrappers. An example is . global nipkgs scope uses qt-5.15 by default while python3Packages use qt-5.14. Therefore you either need to use , or you use and use / as a package input. The second method ensures that you always get the same the current are using. If you then still have problems, feel free to ask again.
I marked this as stale due to inactivity. &rarr;
Bump: virtscreen seems quite useful and currently broken.

Discussion:
<del> { lib, stdenv, fetchFromGitHub, python3Packages, x11vnc, xrandr, libGL }: </del> <ins> { lib , stdenv , fetchFromGitHub , python3Packages , x11vnc , xrandr , libGL , qt5 }: </ins> python3Packages.buildPythonApplication rec { pname = "virtscreen";

sha256 = "005qach6phz8w17k8kqmyd647c6jkfybczybxq0yxi5ik0s91a08"; }; <ins> nativeBuildInputs = [ qt5.wrapQtAppsHook ]; </ins> propagatedBuildInputs = with python3Packages; [ netifaces pyqt5

xrandr ]; <del> postPatch = let ext = stdenv.hostPlatform.extensions.sharedLibrary; in '' </del> <ins> dontWrapQtApps = true; makeWrapperArgs = [ "${qtWrapperArgs[@]}" # import Qt.labs.platform failed without this "--prefix QML2_IMPORT_PATH : ${qt5.qtquickcontrols2.bin}/${qt5.qtbase.qtQmlPrefix}" ]; postPatch = '' </ins> substituteInPlace virtscreen/__main__.py  <del> --replace "'GL'" "'${libGL}/lib/libGL${ext}'"  </del> <ins> --replace "'GL'" "'${libGL}/lib/libGL${stdenv.hostPlatform.extensions.sharedLibrary}'"  </ins> ''; meta = with lib; {