* Add a fetchhg builder to checkout mercurial repositories.

svn path=/nixpkgs/trunk/; revision=18347
This commit is contained in:
Nicolas Pierron 2009-11-14 20:14:21 +00:00
parent 7482474aef
commit c8cb5210fb
3 changed files with 11 additions and 2 deletions

View File

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

View File

@ -1,7 +1,8 @@
{stdenv, mercurial, nix}: {url, tag ? null, md5}:
# TODO: statically check if mercurial as the https support if the url starts woth https.
stdenv.mkDerivation {
name = "fetchdarcs";
name = "fetchhg";
builder = ./builder.sh;
buildInputs = [mercurial nix];

View File

@ -290,7 +290,6 @@ let
sshSupport = true;
};
# TODO do some testing
fetchhg = import ../build-support/fetchhg {
inherit stdenv mercurial nix;
};