qt5: Cleanup temporary Qt root on nix-shell exit

This commit is contained in:
Alexander V. Nikolaev 2017-09-04 03:58:43 +03:00
parent eabe2efa10
commit a830aa3af0

View file

@ -146,3 +146,10 @@ EOF
export QMAKE="$NIX_QT5_TMP/bin/qmake"
fi
_qtShellCleanupHook () {
rm -fr $NIX_QT5_TMP
}
if [ -n "$IN_NIX_SHELL" ]; then
trap _qtShellCleanupHook EXIT
fi