mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
goPackages: include buildFromGithub to fix #10805
This commit is contained in:
parent
398611fb6c
commit
fa7d863af0
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user