Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pkgs/development/libraries/qt-6/hooks/qtbase-setup-hook.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
if [[ -n "${__nix_qtbase-}" ]]; then
# Throw an error if a different version of Qt was already set up.
if [[ "$__nix_qtbase" != "@out@" ]]; then
if [[ "$__nix_qtbase" != "@finalPackageOut@" ]]; then
echo >&2 "Error: detected mismatched Qt dependencies:"
echo >&2 " @out@"
echo >&2 " @finalPackageOut@"
echo >&2 " $__nix_qtbase"
exit 1
fi
else # Only set up Qt once.
__nix_qtbase="@out@"
__nix_qtbase="@finalPackageOut@"

qtPluginPrefix=@qtPluginPrefix@
qtQmlPrefix=@qtQmlPrefix@
Expand All @@ -16,7 +16,7 @@ else # Only set up Qt once.
. @fix_qt_module_paths@

# Build tools are often confused if QMAKE is unset.
export QMAKE=@out@/bin/qmake
export QMAKE=@finalPackageOut@/bin/qmake

export QMAKEPATH=

Expand Down
3 changes: 3 additions & 0 deletions pkgs/development/libraries/qt-6/modules/qtbase/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ stdenv.mkDerivation {

dontWrapQtApps = true;

# workaround to correctly reference the actual package in the final setup hook
finalPackageOut = placeholder "out";

setupHook =
let
hook = makeSetupHook {
Expand Down
Loading