8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
22 lines
597 B
Bash
22 lines
597 B
Bash
source $stdenv/setup
|
|
header "Cloning Fossil $url [$rev] into $out"
|
|
|
|
# Fossil, bless its adorable little heart, wants to write global configuration
|
|
# to $HOME/.fossil. AFAICT, there is no way to disable this functionality.
|
|
# Instead, we'll let it write to the build directory.
|
|
export HOME=$(pwd)
|
|
|
|
# We must explicitly set the admin user for the clone to something reasonable.
|
|
fossil clone -A nobody "$url" fossil-clone.fossil
|
|
|
|
mkdir fossil-clone
|
|
WORKDIR=$(pwd)
|
|
mkdir $out
|
|
pushd $out
|
|
fossil open "$WORKDIR/fossil-clone.fossil" "$rev"
|
|
popd
|
|
|
|
# Just nuke the checkout file.
|
|
rm $out/.fslckout
|
|
|
|
stopNest
|