moveBuildTree: init
This commit is contained in:
parent
5de5912954
commit
ddd8604a3b
12
pkgs/build-support/setup-hooks/move-build-tree.sh
Normal file
12
pkgs/build-support/setup-hooks/move-build-tree.sh
Normal file
@ -0,0 +1,12 @@
|
||||
prePhases+=" moveBuildDir"
|
||||
|
||||
moveBuildDir() {
|
||||
mkdir -p $out/.build
|
||||
cd $out/.build
|
||||
}
|
||||
|
||||
postPhases+=" removeBuildDir"
|
||||
|
||||
removeBuildDir() {
|
||||
rm -rf $out/.build
|
||||
}
|
@ -1173,6 +1173,10 @@ with pkgs;
|
||||
name = "keep-build-tree-hook";
|
||||
} ../build-support/setup-hooks/keep-build-tree.sh;
|
||||
|
||||
moveBuildTree = makeSetupHook {
|
||||
name = "move-build-tree-hook";
|
||||
} ../build-support/setup-hooks/move-build-tree.sh;
|
||||
|
||||
enableGCOVInstrumentation = makeSetupHook {
|
||||
name = "enable-gcov-instrumentation-hook";
|
||||
} ../build-support/setup-hooks/enable-coverage-instrumentation.sh;
|
||||
|
Loading…
Reference in New Issue
Block a user