* Add a fetchhg builder to checkout mercurial repositories.
svn path=/nixpkgs/trunk/; revision=18347
This commit is contained in:
parent
7482474aef
commit
c8cb5210fb
9
pkgs/build-support/fetchhg/builder.sh
Normal file
9
pkgs/build-support/fetchhg/builder.sh
Normal 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
|
@ -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];
|
||||
|
||||
|
@ -290,7 +290,6 @@ let
|
||||
sshSupport = true;
|
||||
};
|
||||
|
||||
# TODO do some testing
|
||||
fetchhg = import ../build-support/fetchhg {
|
||||
inherit stdenv mercurial nix;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user