about summary refs log tree commit diff
path: root/nixpkgs/pkgs/build-support/fetchbzr/builder.sh
blob: 991864719a07343999d3ab824394d0d60ffc4ea9 (plain) (blame)
1
2
3
4
5
6
7
8
if [ -e .attrs.sh ]; then source .attrs.sh; fi
source "$stdenv/setup"

echo "exporting \`$url' (revision $rev) into \`$out'"

# Perform a lightweight checkout so that we don't end up importing
# all the repository's history.
XDG_CACHE_HOME="$TMPDIR" BRZ_LOG=/dev/null bzr -Ossl.cert_reqs=none export -r "$rev" --format=dir "$out" "$url"