File: gc-concurrent.builder.sh

package info (click to toggle)
nix 2.3.7%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,960 kB
  • sloc: cpp: 34,925; xml: 14,333; sh: 5,429; perl: 587; yacc: 568; lex: 222; makefile: 51; sql: 32; python: 22; ruby: 1; exp: 1
file content (13 lines) | stat: -rw-r--r-- 280 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
mkdir $out
echo $(cat $input1/foo)$(cat $input2/bar) > $out/foobar

sleep 10

# $out should not have been GC'ed while we were sleeping, but just in
# case...
mkdir -p $out

# Check that the GC hasn't deleted the lock on our output.
test -e "$out.lock"

ln -s $input2 $out/input-2