goPackages: include buildFromGithub to fix #10805

This commit is contained in:
Vladimír Čunát 2015-11-05 16:07:24 +01:00
parent 398611fb6c
commit fa7d863af0

View File

@ -6,16 +6,16 @@
let
isGo14 = go.meta.branch == "1.4";
self = _self // overrides; _self = with self; {
inherit go buildGoPackage;
buildFromGitHub = { rev, date ? null, owner, repo, sha256, name ? repo, goPackagePath ? "github.com/${owner}/${repo}", ... }@args: buildGoPackage (args // {
inherit rev goPackagePath;
name = "${name}-${if date != null then date else if builtins.stringLength rev != 40 then rev else stdenv.lib.strings.substring 0 7 rev}";
src = fetchFromGitHub { inherit rev owner repo sha256; };
});
self = _self // overrides; _self = with self; {
inherit go buildGoPackage;
## OFFICIAL GO PACKAGES
crypto = buildFromGitHub {