add qtbase to ld library path

Nelson Torres 2025-01-29 23:55:58 +00:00
parent de2e9a82c2
commit ac6c05431a
1 changed files with 12 additions and 10 deletions

View File

@ -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