goDeps: support for mercurial repos

This commit is contained in:
Kamil Chmielewski 2016-06-05 14:58:08 +02:00
parent 2665cae1f4
commit fc9bc9eba5

View File

@ -1,4 +1,4 @@
{ go, govers, parallel, lib, fetchgit }:
{ go, govers, parallel, lib, fetchgit, fetchhg }:
{ name, buildInputs ? [], nativeBuildInputs ? [], passthru ? {}, preFixup ? ""
@ -48,6 +48,10 @@ let
fetchgit {
inherit (goDep.fetch) url rev sha256;
}
else if goDep.fetch.type == "hg" then
fetchhg {
inherit (goDep.fetch) url rev sha256;
}
else {};
};