diff --git a/default.nix b/default.nix index 4227e03f..7708e6b8 100644 --- a/default.nix +++ b/default.nix @@ -60,6 +60,13 @@ stdenv.mkDerivation { shellHook = '' set -e + # Set the Qt plugin path + # export QT_DEBUG_PLUGINS=1 + + QTBASE_PATH="${qt6baseStorePath}/lib" + export QT_PLUGIN_PATH="$QTBASE_PATH/qt-6/plugins" + export QT_QPA_PLATFORM_PLUGIN_PATH="$QT_PLUGIN_PATH/platforms" + LIB_GCC_PATH="${libgcc.lib}/lib" GLIB_PATH="${glibStorePath}/lib" ZSTD_PATH="${zstdStorePath}/lib" @@ -96,6 +103,9 @@ stdenv.mkDerivation { echo "xorg.xcbutilkeysyms path: $XORG_XCB_UTIL_KEYSYMS_PATH" echo "xorg.xcbutilerrors path: $XORG_XCB_UTIL_ERRORS_PATH" echo "" + echo "qtbase path: $QTBASE_PATH" + echo "qt plugin path: $QT_PLUGIN_PATH" + echo "" LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_GCC_PATH" LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DBUS_PATH" @@ -115,18 +125,10 @@ stdenv.mkDerivation { LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$XORG_XCB_UTIL_KEYSYMS_PATH" LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$XORG_XCB_UTIL_ERRORS_PATH" + LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$QTBASE_PATH" + export LD_LIBRARY_PATH - # Set the Qt plugin path - # export QT_DEBUG_PLUGINS=1 - - QTBASE_PATH="${qt6baseStorePath}" - echo "qtbase path: $QTBASE_PATH" - export QT_PLUGIN_PATH="$QTBASE_PATH/lib/qt-6/plugins" - export QT_QPA_PLATFORM_PLUGIN_PATH="$QT_PLUGIN_PATH/platforms" - echo "qt plugin path: $QT_PLUGIN_PATH" - echo "" - # Maybe create venv & install deps poetry install --with uis