From b8ca70539b8f3ec8dc05ea1d0a806307d54b2e3c Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 5 Jan 2020 21:08:33 +0000 Subject: chore(third_party/gopkgs): Add Google Maps API client & deps --- third_party/gopkgs/github.com/google/uuid/default.nix | 12 ++++++++++++ third_party/gopkgs/golang.org/x/sys/default.nix | 3 --- third_party/gopkgs/golang.org/x/time/default.nix | 10 ++++++++++ third_party/gopkgs/googlemaps.github.io/maps.nix | 17 +++++++++++++++++ 4 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 third_party/gopkgs/github.com/google/uuid/default.nix create mode 100644 third_party/gopkgs/golang.org/x/time/default.nix create mode 100644 third_party/gopkgs/googlemaps.github.io/maps.nix (limited to 'third_party/gopkgs') diff --git a/third_party/gopkgs/github.com/google/uuid/default.nix b/third_party/gopkgs/github.com/google/uuid/default.nix new file mode 100644 index 000000000000..8d60209681d9 --- /dev/null +++ b/third_party/gopkgs/github.com/google/uuid/default.nix @@ -0,0 +1,12 @@ +{ pkgs, ... }: + +pkgs.buildGo.external { + path = "github.com/google/uuid"; + + src = pkgs.third_party.fetchFromGitHub { + owner = "google"; + repo = "uuid"; + rev = "c2e93f3ae59f2904160ceaab466009f965df46d6"; + sha256 = "0zw8fvl6jqg0fmv6kmvhss0g4gkrbvgyvl2zgy5wdbdlgp4fja0h"; + }; +} diff --git a/third_party/gopkgs/golang.org/x/sys/default.nix b/third_party/gopkgs/golang.org/x/sys/default.nix index 037116009962..5655c08d822d 100644 --- a/third_party/gopkgs/golang.org/x/sys/default.nix +++ b/third_party/gopkgs/golang.org/x/sys/default.nix @@ -6,7 +6,4 @@ pkgs.buildGo.external { url = "https://go.googlesource.com/sys"; rev = "ac6580df4449443a05718fd7858c1f91ad5f8d20"; }; - - deps = with pkgs.third_party; [ - ]; } diff --git a/third_party/gopkgs/golang.org/x/time/default.nix b/third_party/gopkgs/golang.org/x/time/default.nix new file mode 100644 index 000000000000..6ccfc8a652ed --- /dev/null +++ b/third_party/gopkgs/golang.org/x/time/default.nix @@ -0,0 +1,10 @@ +{ pkgs, ... }: + +pkgs.buildGo.external { + path = "golang.org/x/time"; + + src = builtins.fetchGit { + url = "https://go.googlesource.com/time"; + rev = "555d28b269f0569763d25dbe1a237ae74c6bcc82"; + }; +} diff --git a/third_party/gopkgs/googlemaps.github.io/maps.nix b/third_party/gopkgs/googlemaps.github.io/maps.nix new file mode 100644 index 000000000000..4c0ee4fb6da2 --- /dev/null +++ b/third_party/gopkgs/googlemaps.github.io/maps.nix @@ -0,0 +1,17 @@ +{ pkgs, ... }: + +pkgs.buildGo.external { + path = "googlemaps.github.io/maps"; + + src = pkgs.third_party.fetchFromGitHub { + owner = "googlemaps"; + repo = "google-maps-services-go"; + rev = "a46d9fca56ac82caa79408b2417ea93a75e3b986"; + sha256 = "1zpl85yd3m417060isdlhxzakqkf4f59jgpz3kcjp2i0mkrskkjs"; + }; + + deps = with pkgs.third_party; map (p: p.gopkg) [ + gopkgs."github.com".google.uuid + gopkgs."golang.org".x.time.rate + ]; +} -- cgit 1.4.1