summaryrefslogtreecommitdiffstats
path: root/pkgs/development/go-modules
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/go-modules')
-rw-r--r--pkgs/development/go-modules/generic/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix
index 500fb8f76cb0..0d70113727c2 100644
--- a/pkgs/development/go-modules/generic/default.nix
+++ b/pkgs/development/go-modules/generic/default.nix
@@ -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}";
};