nixpkgs/pkgs/build-support/setup-hooks/move-build-tree.sh
Yueh-Shun Li 758056dac7 treewide: handle postPhases __structuredAttrs-agnostically
Always specify the postPhases attribute as a list instead of a string.

Append elements to the postPhases Bash variable using appendToVar
instead of string or Bash array concatenation.
2024-09-03 05:56:17 +08:00

13 lines
183 B
Bash

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