Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 19 lines 564 B view raw
1echo "Cloning Fossil $url [$rev] into $out" 2 3# Fossil, bless its adorable little heart, wants to write global configuration 4# to $HOME/.fossil. AFAICT, there is no way to disable this functionality. 5# Instead, we'll let it write to the build directory. 6export HOME=$(pwd) 7 8# We must explicitly set the admin user for the clone to something reasonable. 9fossil clone -A nobody "$url" fossil-clone.fossil 10 11mkdir fossil-clone 12WORKDIR=$(pwd) 13mkdir $out 14pushd $out 15fossil open "$WORKDIR/fossil-clone.fossil" "$rev" 16popd 17 18# Just nuke the checkout file. 19rm $out/.fslckout