Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1if [ -e .attrs.sh ]; then source .attrs.sh; fi
2source "$stdenv/setup"
3
4echo "exporting \`$url' (revision $rev) into \`$out'"
5
6# Perform a lightweight checkout so that we don't end up importing
7# all the repository's history.
8XDG_CACHE_HOME="$TMPDIR" BRZ_LOG=/dev/null bzr -Ossl.cert_reqs=none export -r "$rev" --format=dir "$out" "$url"