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

13 lines
167 B
Bash
Raw Normal View History

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