qt5: Fallback to mktemp -d for temporary QT root.
Fallback to `mktemp -d` for temporary QT root, if invoked in shell mode.
Should fix problem from #27174.
commiteabe2efa10b909de0f185f8c74cd4a71bafc58e1
authorAlexander V. Nikolaev <avn@avnik.info>
dateMon 7 Aug 2017, 17:32 (9 years ago)
parentef026e0
pkgs/development/libraries/qt-5/qtbase-setup-hook.sh+5−1
@@ -116,7 +116,11 @@ fi
116116
117117if [ -z "$NIX_QT5_TMP" ]; then
118118 if [ -z "$NIX_QT_SUBMODULE" ]; then
119− NIX_QT5_TMP=$(pwd)/__nix_qt5__
119+ if [ -z "$IN_NIX_SHELL" ]; then
120+ NIX_QT5_TMP=$(pwd)/__nix_qt5__
121+ else
122+ NIX_QT5_TMP=$(mktemp -d)
123+ fi
120124 else
121125 NIX_QT5_TMP=$out
122126 fi