1
0
Fork 0
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:
Eelco Dolstra 2004-05-12 09:35:51 +00:00
parent c8d3882cdc
commit 8c0b42f857
9 changed files with 92 additions and 13 deletions

17
tests/build-hook.hook.sh Normal file
View 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