goDeps: support for mercurial repos
This commit is contained in:
parent
2665cae1f4
commit
fc9bc9eba5
|
@ -1,4 +1,4 @@
|
||||||
{ go, govers, parallel, lib, fetchgit }:
|
{ go, govers, parallel, lib, fetchgit, fetchhg }:
|
||||||
|
|
||||||
{ name, buildInputs ? [], nativeBuildInputs ? [], passthru ? {}, preFixup ? ""
|
{ name, buildInputs ? [], nativeBuildInputs ? [], passthru ? {}, preFixup ? ""
|
||||||
|
|
||||||
|
@ -48,6 +48,10 @@ let
|
||||||
fetchgit {
|
fetchgit {
|
||||||
inherit (goDep.fetch) url rev sha256;
|
inherit (goDep.fetch) url rev sha256;
|
||||||
}
|
}
|
||||||
|
else if goDep.fetch.type == "hg" then
|
||||||
|
fetchhg {
|
||||||
|
inherit (goDep.fetch) url rev sha256;
|
||||||
|
}
|
||||||
else {};
|
else {};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue