depot/third_party/nixpkgs/pkgs/build-support/fetchhg/builder.sh

10 lines
213 B
Bash
Raw Normal View History

source $stdenv/setup
header "getting $url${rev:+ ($rev)} into $out"
hg clone --insecure "$url" hg-clone
hg archive -q$subrepoClause -y ${rev:+-r "$rev"} --cwd hg-clone $out
rm -f $out/.hg_archival.txt
stopNest