mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 00:53:12 +03:00
c01f509e44
if theres a source $stdenv then this is needed for structuredAttrs
24 lines
644 B
Bash
24 lines
644 B
Bash
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
|
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
|