mirror of
https://github.com/NixOS/nix
synced 2025-07-07 14:21:48 +02:00
* Simplify communication with the hook a bit (don't use file
descriptors 3/4, just use stdin/stderr).
This commit is contained in:
parent
7fb548aa26
commit
3a2bbe7f8a
6 changed files with 68 additions and 117 deletions
|
@ -11,11 +11,11 @@ outPath=$(sed 's/Derive(\[("out",\"\([^\"]*\)\".*/\1/' $drv)
|
|||
echo "output path is $outPath" >&2
|
||||
|
||||
if $(echo $outPath | grep -q input-1); then
|
||||
echo "accept" >&3
|
||||
read x <&4
|
||||
echo "# accept" >&2
|
||||
read x
|
||||
echo "got $x"
|
||||
mkdir $outPath
|
||||
echo "BAR" > $outPath/foo
|
||||
else
|
||||
echo "decline" >&3
|
||||
echo "# decline" >&2
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue