pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / build-support / fetchsvn / builder.sh
blobe187747f14e6a4fa6d743e327b633c05671ac26b
1 if [ -e "$NIX_ATTRS_SH_FILE" ]; then . "$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh ]; then . .attrs.sh; fi
2 source $stdenv/setup
4 echo "exporting $url (r$rev) into $out"
6 if test -n "$http_proxy"; then
7 # Configure proxy
8 mkdir .subversion
9 proxy="${http_proxy#*://}"
11 echo '[global]' > .subversion/servers
12 echo "http-proxy-host = ${proxy%:*}" >> .subversion/servers
13 echo "http-proxy-port = ${proxy##*:}" >> .subversion/servers
15 export HOME="$PWD"
16 fi;
18 if test -z "$LC_ALL"; then
19 export LC_ALL="en_US.UTF-8"
20 fi;
22 svn export --trust-server-cert --non-interactive \
23 ${ignoreExternals:+--ignore-externals} ${ignoreKeywords:+--ignore-keywords} \
24 -r "$rev" "$url" "$out"