mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-24 20:02:58 +03:00
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 ? ""
|
||||
|
||||
@ -48,7 +48,11 @@ let
|
||||
fetchgit {
|
||||
inherit (goDep.fetch) url rev sha256;
|
||||
}
|
||||
else {};
|
||||
else if goDep.fetch.type == "hg" then
|
||||
fetchhg {
|
||||
inherit (goDep.fetch) url rev sha256;
|
||||
}
|
||||
else {};
|
||||
};
|
||||
|
||||
importGodeps = { depsFile, filterPackages ? [] }:
|
||||
|
Loading…
Reference in New Issue
Block a user