summaryrefslogtreecommitdiffstats
path: root/pkgs/development/mobile/genymotion
diff options
context:
space:
mode:
authorDolphin von Chips <insep@постмаркетос.рф>2022-03-24 15:31:35 +0500
committerDolphin von Chips <insep@постмаркетос.рф>2022-03-24 16:32:38 +0500
commit28d80ffa92ee507da27de4798fa35c9c04831e55 (patch)
tree17a8e837ec592e93ecac9208e0aff6c2f3c25654 /pkgs/development/mobile/genymotion
parent9cc05394bca0f49c0d727ad1b529170872bebae7 (diff)
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 ;)
Diffstat (limited to 'pkgs/development/mobile/genymotion')
-rw-r--r--pkgs/development/mobile/genymotion/default.nix3
1 files changed, 2 insertions, 1 deletions
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() {