mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
2d94071cc4
Otherwise no bumps are done when upstream changes. Not sure how to ping the repository and check without just doing the clone.
23 lines
597 B
Bash
23 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
|