summary refs log tree commit diff
path: root/pkgs/build-support/fetchhg/builder.sh
blob: 6e9fbab791f35d470ed154eba000968d6f87c305 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
source $stdenv/setup

header "getting $url${tag:+ ($tag)} into $out"

hg clone --insecure ${tag:+-r "$tag"} "$url" hg-clone

hg archive -q -y ${tag:+-r "$tag"} --cwd hg-clone $out
rm -f $out/.hg_archival.txt

stopNest