* Add a fetchhg builder to checkout mercurial repositories.
svn path=/nixpkgs/trunk/; revision=18347
This commit is contained in:
@@ -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
|
||||||
@@ -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];
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user