nixpkgs/pkgs/build-support/fetchhg/builder.sh
Jack Cummings 83e45309fd fetchhg: allow untrusted certs (merge #540)
It's for fixed-output derivations, security provided by output hash.
2013-05-20 21:24:25 +02:00

10 lines
151 B
Bash

source $stdenv/setup
header "getting $url${tag:+ ($tag)} into $out"
hg clone --insecure ${tag:+-r "$tag"} "$url" "$out"
rm -rf "$out/.hg"
stopNest