@@ -1,4 +1,4 @@
1−{stdenv, mercurial, nix}: {name ? null, url, rev ? null, md5 ? null, sha256 ? null}:
1+{stdenv, mercurial, nix}: {name ? null, url, rev ? null, md5 ? null, sha256 ? null, fetchSubrepos ? false}:
22
33# TODO: statically check if mercurial as the https support if the url starts woth https.
44stdenv.mkDerivation {
@@ -13,6 +13,8 @@ stdenv.mkDerivation {
1313 # Nix <= 0.7 compatibility.
1414 id = md5;
1515
16+ subrepoClause = if fetchSubrepos then "S" else "";
17+
1618 outputHashAlgo = if md5 != null then "md5" else "sha256";
1719 outputHashMode = "recursive";
1820 outputHash = if md5 != null then md5 else sha256;