mirror of
https://github.com/NixOS/nix
synced 2025-07-08 02:43:54 +02:00
* An quick and dirty hack to support distributed builds.
This commit is contained in:
parent
c8d3882cdc
commit
8c0b42f857
9 changed files with 92 additions and 13 deletions
17
tests/build-hook.hook.sh
Normal file
17
tests/build-hook.hook.sh
Normal file
|
@ -0,0 +1,17 @@
|
|||
set -x
|
||||
|
||||
drv=$1
|
||||
|
||||
echo "HOOK for $drv"
|
||||
|
||||
outPath=$(sed 's/Derive(\[\"\([^\"]*\)\".*/\1/' $drv)
|
||||
|
||||
echo "output path is $outPath"
|
||||
|
||||
if $(echo $outPath | grep -q input-1); then
|
||||
mkdir $outPath
|
||||
echo "BAR" > $outPath/foo
|
||||
exit 100
|
||||
fi
|
||||
|
||||
exit 101
|
Loading…
Add table
Add a link
Reference in a new issue