mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
Merge pull request #19311 from kamilchm/goDeps-FromGitHub
goDeps: support fetchFromGitHub to fetch Go libs
This commit is contained in:
commit
99640dce1a
@ -1,4 +1,5 @@
|
||||
{ go, govers, parallel, lib, fetchgit, fetchhg, fetchbzr, rsync, removeReferencesTo }:
|
||||
{ go, govers, parallel, lib, fetchgit, fetchhg, fetchbzr, rsync
|
||||
, removeReferencesTo, fetchFromGitHub }:
|
||||
|
||||
{ name, buildInputs ? [], nativeBuildInputs ? [], passthru ? {}, preFixup ? ""
|
||||
|
||||
@ -58,6 +59,10 @@ let
|
||||
fetchbzr {
|
||||
inherit (goDep.fetch) url rev sha256;
|
||||
}
|
||||
else if goDep.fetch.type == "FromGitHub" then
|
||||
fetchFromGitHub {
|
||||
inherit (goDep.fetch) owner repo rev sha256;
|
||||
}
|
||||
else abort "Unrecognized package fetch type: ${goDep.fetch.type}";
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user