add qtbase to ld library path

nix_env_fix
Nelson Torres 2025-01-21 17:44:51 -03:00
parent 76d61a8ffd
commit 4ec358e9f1
1 changed files with 12 additions and 10 deletions

View File

@ -60,6 +60,13 @@ stdenv.mkDerivation {
shellHook = '' shellHook = ''
set -e 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" LIB_GCC_PATH="${libgcc.lib}/lib"
GLIB_PATH="${glibStorePath}/lib" GLIB_PATH="${glibStorePath}/lib"
ZSTD_PATH="${zstdStorePath}/lib" ZSTD_PATH="${zstdStorePath}/lib"
@ -96,6 +103,9 @@ stdenv.mkDerivation {
echo "xorg.xcbutilkeysyms path: $XORG_XCB_UTIL_KEYSYMS_PATH" echo "xorg.xcbutilkeysyms path: $XORG_XCB_UTIL_KEYSYMS_PATH"
echo "xorg.xcbutilerrors path: $XORG_XCB_UTIL_ERRORS_PATH" echo "xorg.xcbutilerrors path: $XORG_XCB_UTIL_ERRORS_PATH"
echo "" 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:$LIB_GCC_PATH"
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DBUS_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_KEYSYMS_PATH"
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$XORG_XCB_UTIL_ERRORS_PATH" LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$XORG_XCB_UTIL_ERRORS_PATH"
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$QTBASE_PATH"
export LD_LIBRARY_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 # Maybe create venv & install deps
poetry install --with uis poetry install --with uis