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