about summary refs log tree commit diff
path: root/pkgs/development/python-modules/uxsim/add-qt-plugin-path-to-env.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/uxsim/add-qt-plugin-path-to-env.patch')
-rw-r--r--pkgs/development/python-modules/uxsim/add-qt-plugin-path-to-env.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/uxsim/add-qt-plugin-path-to-env.patch b/pkgs/development/python-modules/uxsim/add-qt-plugin-path-to-env.patch
new file mode 100644
index 0000000000000..a496456caa487
--- /dev/null
+++ b/pkgs/development/python-modules/uxsim/add-qt-plugin-path-to-env.patch
@@ -0,0 +1,11 @@
+diff --git a/uxsim/__init__.py b/uxsim/__init__.py
+index cf661c5..540e6f8 100644
+--- a/uxsim/__init__.py
++++ b/uxsim/__init__.py
+@@ -1,3 +1,6 @@
++import os
++if not os.getenv("QT_PLUGIN_PATH"):
++    os.environ["QT_PLUGIN_PATH"] = "$NIX_QT_PLUGIN_PATH"
+ from .uxsim import *
+ from .utils import *
+ from .analyzer import *