1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-17 18:34:41 +00:00

* 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}: {stdenv, mercurial, nix}: {url, tag ? null, md5}:
# TODO: statically check if mercurial as the https support if the url starts woth https.
stdenv.mkDerivation { stdenv.mkDerivation {
name = "fetchdarcs"; name = "fetchhg";
builder = ./builder.sh; builder = ./builder.sh;
buildInputs = [mercurial nix]; buildInputs = [mercurial nix];

View file

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