depot/third_party/nixpkgs/pkgs/build-support/setup-hooks/move-build-tree.sh

12 lines
183 B
Bash

appendToVar prePhases moveBuildDir
moveBuildDir() {
mkdir -p $out/.build
cd $out/.build
}
appendToVar postPhases removeBuildDir
removeBuildDir() {
rm -rf $out/.build
}