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.
This commit is contained in:
Alexander V. Nikolaev 2017-08-07 17:32:30 +03:00
parent ef026e02fc
commit eabe2efa10

View File

@ -116,7 +116,11 @@ fi
if [ -z "$NIX_QT5_TMP" ]; then
if [ -z "$NIX_QT_SUBMODULE" ]; then
NIX_QT5_TMP=$(pwd)/__nix_qt5__
if [ -z "$IN_NIX_SHELL" ]; then
NIX_QT5_TMP=$(pwd)/__nix_qt5__
else
NIX_QT5_TMP=$(mktemp -d)
fi
else
NIX_QT5_TMP=$out
fi