qt5: Cleanup temporary Qt root on nix-shell exit
This commit is contained in:
parent
eabe2efa10
commit
a830aa3af0
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue