From ac6c05431aaf8a548dca75fd5e5fdcba26c68966 Mon Sep 17 00:00:00 2001 From: Nelson Torres Date: Wed, 29 Jan 2025 23:55:58 +0000 Subject: [PATCH] add qtbase to ld library path --- default.nix | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/default.nix b/default.nix index aedf4135..d4244214 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