2007-09-04 13:45:00 +01:00
|
|
|
{stdenv, mercurial, nix}: {url, tag ? null, md5}:
|
|
|
|
|
2009-11-14 20:14:21 +00:00
|
|
|
# TODO: statically check if mercurial as the https support if the url starts woth https.
|
2007-09-04 13:45:00 +01:00
|
|
|
stdenv.mkDerivation {
|
2009-11-14 20:14:21 +00:00
|
|
|
name = "fetchhg";
|
2007-09-04 13:45:00 +01:00
|
|
|
builder = ./builder.sh;
|
|
|
|
buildInputs = [mercurial nix];
|
|
|
|
|
|
|
|
# Nix <= 0.7 compatibility.
|
|
|
|
id = md5;
|
|
|
|
|
|
|
|
outputHashAlgo = "md5";
|
|
|
|
outputHashMode = "recursive";
|
|
|
|
outputHash = md5;
|
|
|
|
|
|
|
|
inherit url tag;
|
|
|
|
}
|