nixpkgs-suyu/pkgs/build-support/fetchbzr/builder.sh
2023-01-16 00:08:12 +02:00

8 lines
312 B
Bash

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.
BZR_LOG=/dev/null bzr -Ossl.cert_reqs=none export -r "$rev" --format=dir "$out" "$url"