From 28d80ffa92ee507da27de4798fa35c9c04831e55 Mon Sep 17 00:00:00 2001 From: Dolphin von Chips Date: Thu, 24 Mar 2022 15:31:35 +0500 Subject: [PATCH] genymotion: fix startup on Qt-based environments Currently trying to run Genymotion on Plasma 5 fails at all, Genymotion itself complaining about libqtquickcontrols2materialstyleplugin.so using "incompatible Qt library". As it turns out, this package ships its own version of Qt but does not ignore any environment variables related to Qt, which results in Genymotion's Qt using (apparently incompatible) QML plugins from user's system. This can be fixed quite easily by unsetting `QML2_IMPORT_PATH` in a wrapper, which this patch does. There might be more such problems, but I haven't encountered them yet, so fixing those will be up to someone else ;) --- pkgs/development/mobile/genymotion/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/mobile/genymotion/default.nix b/pkgs/development/mobile/genymotion/default.nix index 282324d20508..2b94ed14aa9c 100644 --- a/pkgs/development/mobile/genymotion/default.nix +++ b/pkgs/development/mobile/genymotion/default.nix @@ -61,7 +61,8 @@ stdenv.mkDerivation rec { patchExecutable() { patchInterpreter "$1" wrapProgram "$out/libexec/genymotion/$1" \ - --set "LD_LIBRARY_PATH" "${libPath}" + --set "LD_LIBRARY_PATH" "${libPath}" \ + --unset "QML2_IMPORT_PATH" } patchTool() {