pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / build-support / fetchhg / builder.sh
blob20dfde4b10d44a6651b3a231f71ab7a37efc31a3
1 if [ -e "$NIX_ATTRS_SH_FILE" ]; then . "$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh ]; then . .attrs.sh; fi
2 source $stdenv/setup
3 echo "getting $url${rev:+ ($rev)} into $out"
5 hg clone --insecure "$url" hg-clone
7 hg archive -q$subrepoClause -y ${rev:+-r "$rev"} --cwd hg-clone $out
8 rm -f $out/.hg_archival.txt