mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
758056dac7
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.
13 lines
183 B
Bash
13 lines
183 B
Bash
appendToVar prePhases moveBuildDir
|
|
|
|
moveBuildDir() {
|
|
mkdir -p $out/.build
|
|
cd $out/.build
|
|
}
|
|
|
|
appendToVar postPhases removeBuildDir
|
|
|
|
removeBuildDir() {
|
|
rm -rf $out/.build
|
|
}
|