1 if [ -e "$NIX_ATTRS_SH_FILE" ]; then .
"$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh
]; then . .attrs.sh
; fi
3 echo "Cloning Fossil $url [$rev] into $out"
5 # Fossil, bless its adorable little heart, wants to write global configuration
6 # to $HOME/.fossil. AFAICT, there is no way to disable this functionality.
7 # Instead, we'll let it write to the build directory.
10 # We must explicitly set the admin user for the clone to something reasonable.
11 fossil clone
-A nobody
"$url" fossil-clone.fossil
17 fossil open
"$WORKDIR/fossil-clone.fossil" "$rev"
20 # Just nuke the checkout file.