1 if [ -e "$NIX_ATTRS_SH_FILE" ]; then .
"$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh
]; then . .attrs.sh
; fi
6 # Darcs hashes are sha1 (120 bits, 40-character hex)
7 if [[ "$rev" =~
[a-fA-F0-9
]{40} ]]; then
9 tagflags
="--to-hash=$rev"
10 elif test -n "$rev"; then
13 elif test -n "$context"; then
15 tagflags
="--context=$context"
18 echo "getting $url $partial ${tagtext} into $out"
20 darcs get
--lazy $tagflags "$url" "$out"
21 # remove metadata, because it can change