diff options
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.patch | 24 |
1 files changed, 24 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..42f001085d050 --- /dev/null +++ b/pkgs/development/python-modules/uxsim/add-qt-plugin-path-to-env.patch @@ -0,0 +1,24 @@ +diff --git a/uxsim/__init__.py b/uxsim/__init__.py +index 01e1ad1..de1f0fd 100644 +--- a/uxsim/__init__.py ++++ b/uxsim/__init__.py +@@ -1,8 +1,14 @@ +-from .uxsim import * +-from .utils import * ++import os ++ + from .analyzer import * ++from .utils import * ++from .uxsim import * ++ ++# Only set our own plugin path if it's not already set ++if not os.getenv("QT_PLUGIN_PATH"): ++ os.environ["QT_PLUGIN_PATH"] = "$NIX_QT_PLUGIN_PATH" + + __version__ = "1.1.1" + __author__ = "Toru Seo" + __copyright__ = "Copyright (c) 2023 Toru Seo" +-__license__ = "MIT License" +\ No newline at end of file ++__license__ = "MIT License" + |