From fe393a47c740c9efbbf64f1f0472b2da860eca6b Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Wed, 31 Mar 2021 20:52:05 +0000 Subject: [PATCH] 3p/gopkgs: add gocloud.dev ...phew. --- .../github.com/aws/aws-sdk-go/default.nix | 17 ++++++++++ .../github.com/golang/groupcache/default.nix | 16 +++++++++ .../gopkgs/github.com/google/wire/default.nix | 14 ++++++++ .../github.com/googleapis/gax-go/default.nix | 19 +++++++++++ .../jmespath/go-jmespath/default.nix | 14 ++++++++ .../gopkgs/go.opencensus.io/default.nix | 22 ++++++++++++ third_party/gopkgs/gocloud.dev/default.nix | 34 +++++++++++++++++++ .../google.golang.org/genproto/default.nix | 20 +++++++++++ .../gopkgs/google.golang.org/grpc/default.nix | 27 +++++++++++++++ 9 files changed, 183 insertions(+) create mode 100644 third_party/gopkgs/github.com/aws/aws-sdk-go/default.nix create mode 100644 third_party/gopkgs/github.com/golang/groupcache/default.nix create mode 100644 third_party/gopkgs/github.com/google/wire/default.nix create mode 100644 third_party/gopkgs/github.com/googleapis/gax-go/default.nix create mode 100644 third_party/gopkgs/github.com/jmespath/go-jmespath/default.nix create mode 100644 third_party/gopkgs/go.opencensus.io/default.nix create mode 100644 third_party/gopkgs/gocloud.dev/default.nix create mode 100644 third_party/gopkgs/google.golang.org/genproto/default.nix create mode 100644 third_party/gopkgs/google.golang.org/grpc/default.nix diff --git a/third_party/gopkgs/github.com/aws/aws-sdk-go/default.nix b/third_party/gopkgs/github.com/aws/aws-sdk-go/default.nix new file mode 100644 index 0000000000..9fa06ef95e --- /dev/null +++ b/third_party/gopkgs/github.com/aws/aws-sdk-go/default.nix @@ -0,0 +1,17 @@ +# SPDX-FileCopyrightText: 2020 Luke Granger-Brown +# +# SPDX-License-Identifier: Apache-2.0 + +{ depot, ... }: +depot.third_party.buildGo.external { + path = "github.com/aws/aws-sdk-go"; + src = depot.third_party.nixpkgs.fetchFromGitHub { + owner = "aws"; + repo = "aws-sdk-go"; + rev = "v1.38.10"; + hash = "sha256:018lhkphhkl1nvamw72v7pi43gz62x5aaca2nmkszlai27fbbakj"; + }; + deps = with depot.third_party; [ + gopkgs."github.com".jmespath.go-jmespath + ]; +} diff --git a/third_party/gopkgs/github.com/golang/groupcache/default.nix b/third_party/gopkgs/github.com/golang/groupcache/default.nix new file mode 100644 index 0000000000..74e8c653cc --- /dev/null +++ b/third_party/gopkgs/github.com/golang/groupcache/default.nix @@ -0,0 +1,16 @@ +# SPDX-FileCopyrightText: 2020 Luke Granger-Brown +# +# SPDX-License-Identifier: Apache-2.0 + +{ depot, ... }: +depot.third_party.buildGo.external { + path = "github.com/golang/groupcache"; + src = depot.third_party.nixpkgs.fetchFromGitHub { + owner = "golang"; + repo = "groupcache"; + rev = "8c9f03a8e57eb486e42badaed3fb287da51807ba"; + hash = "sha256:0vjjr79r32icjzlb05wn02k59av7jx0rn1jijml8r4whlg7dnkfh"; + }; + deps = with depot.third_party; [ + ]; +} diff --git a/third_party/gopkgs/github.com/google/wire/default.nix b/third_party/gopkgs/github.com/google/wire/default.nix new file mode 100644 index 0000000000..d672b66ca5 --- /dev/null +++ b/third_party/gopkgs/github.com/google/wire/default.nix @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: 2020 Luke Granger-Brown +# +# SPDX-License-Identifier: Apache-2.0 + +{ depot, ... }: +depot.third_party.buildGo.external { + path = "github.com/google/wire"; + src = depot.third_party.nixpkgs.fetchFromGitHub { + owner = "google"; + repo = "wire"; + rev = "v0.5.0"; + hash = "sha256:038c7ss7fgihh76b4lnsm7dhhhq4kjwm06f8radw454g5jdg467p"; + }; +} diff --git a/third_party/gopkgs/github.com/googleapis/gax-go/default.nix b/third_party/gopkgs/github.com/googleapis/gax-go/default.nix new file mode 100644 index 0000000000..f86d7462c6 --- /dev/null +++ b/third_party/gopkgs/github.com/googleapis/gax-go/default.nix @@ -0,0 +1,19 @@ +# SPDX-FileCopyrightText: 2020 Luke Granger-Brown +# +# SPDX-License-Identifier: Apache-2.0 + +{ depot, ... }: +depot.third_party.buildGo.external { + path = "github.com/googleapis/gax-go"; + src = depot.third_party.nixpkgs.fetchFromGitHub { + owner = "googleapis"; + repo = "gax-go"; + rev = "v2.0.5"; + hash = "sha256:1lxawwngv6miaqd25s3ba0didfzylbwisd2nz7r4gmbmin6jsjrx"; + }; + deps = with depot.third_party; [ + gopkgs."google.golang.org".grpc + gopkgs."google.golang.org".grpc.codes + gopkgs."google.golang.org".grpc.status + ]; +} diff --git a/third_party/gopkgs/github.com/jmespath/go-jmespath/default.nix b/third_party/gopkgs/github.com/jmespath/go-jmespath/default.nix new file mode 100644 index 0000000000..00b19e6432 --- /dev/null +++ b/third_party/gopkgs/github.com/jmespath/go-jmespath/default.nix @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: 2020 Luke Granger-Brown +# +# SPDX-License-Identifier: Apache-2.0 + +{ depot, ... }: +depot.third_party.buildGo.external { + path = "github.com/jmespath/go-jmespath"; + src = depot.third_party.nixpkgs.fetchFromGitHub { + owner = "jmespath"; + repo = "go-jmespath"; + rev = "v0.4.0"; + hash = "sha256:18zyr9nlywmwp3wpzcjxrgq9s9d2mmc6zg6xhsna00m663nkyc3n"; + }; +} diff --git a/third_party/gopkgs/go.opencensus.io/default.nix b/third_party/gopkgs/go.opencensus.io/default.nix new file mode 100644 index 0000000000..c2173489b8 --- /dev/null +++ b/third_party/gopkgs/go.opencensus.io/default.nix @@ -0,0 +1,22 @@ +# SPDX-FileCopyrightText: 2020 Luke Granger-Brown +# +# SPDX-License-Identifier: Apache-2.0 + +{ depot, ... }: +depot.third_party.buildGo.external { + path = "go.opencensus.io"; + src = depot.third_party.nixpkgs.fetchFromGitHub { + owner = "census-instrumentation"; + repo = "opencensus-go"; + rev = "v0.23.0"; + hash = "sha256:0gw4f7inf8y2ik00yfb36xganiq9rl4w2d1a41bsjqsh83ajz2km"; + }; + deps = with depot.third_party; [ + gopkgs."google.golang.org".grpc.codes + gopkgs."google.golang.org".grpc.grpclog + gopkgs."google.golang.org".grpc.metadata + gopkgs."google.golang.org".grpc.stats + gopkgs."google.golang.org".grpc.status + gopkgs."github.com".golang.groupcache.lru + ]; +} diff --git a/third_party/gopkgs/gocloud.dev/default.nix b/third_party/gopkgs/gocloud.dev/default.nix new file mode 100644 index 0000000000..411d246dfd --- /dev/null +++ b/third_party/gopkgs/gocloud.dev/default.nix @@ -0,0 +1,34 @@ +# SPDX-FileCopyrightText: 2020 Luke Granger-Brown +# +# SPDX-License-Identifier: Apache-2.0 + +{ depot, ... }: +depot.third_party.buildGo.external { + path = "gocloud.dev"; + src = depot.third_party.nixpkgs.fetchFromGitHub { + owner = "google"; + repo = "go-cloud"; + rev = "v0.22.0"; + hash = "sha256:13xzadkcw7zj0rj0zc2yalap27wcp7bxcgjhmqaclbcxv0h7ynmj"; + }; + deps = with depot.third_party; [ + gopkgs."go.opencensus.io".stats + gopkgs."go.opencensus.io".stats.view + gopkgs."go.opencensus.io".tag + gopkgs."go.opencensus.io".trace + gopkgs."go.opencensus.io".plugin.ocgrpc + gopkgs."golang.org".x.xerrors + gopkgs."google.golang.org".grpc.codes + gopkgs."google.golang.org".grpc.status + gopkgs."github.com".googleapis.gax-go.v2 + gopkgs."github.com".aws.aws-sdk-go.aws + gopkgs."github.com".aws.aws-sdk-go.aws.awserr + gopkgs."github.com".aws.aws-sdk-go.aws.client + gopkgs."github.com".aws.aws-sdk-go.aws.credentials + gopkgs."github.com".aws.aws-sdk-go.aws.request + gopkgs."github.com".aws.aws-sdk-go.aws.session + gopkgs."github.com".aws.aws-sdk-go.service.s3 + gopkgs."github.com".aws.aws-sdk-go.service.s3.s3manager + gopkgs."github.com".google.wire + ]; +} diff --git a/third_party/gopkgs/google.golang.org/genproto/default.nix b/third_party/gopkgs/google.golang.org/genproto/default.nix new file mode 100644 index 0000000000..d0d374f3e2 --- /dev/null +++ b/third_party/gopkgs/google.golang.org/genproto/default.nix @@ -0,0 +1,20 @@ +# SPDX-FileCopyrightText: 2020 Luke Granger-Brown +# +# SPDX-License-Identifier: Apache-2.0 + +{ depot, ... }: +depot.third_party.buildGo.external { + path = "google.golang.org/genproto"; + src = depot.third_party.nixpkgs.fetchFromGitHub { + owner = "googleapis"; + repo = "go-genproto"; + rev = "b7513248f0baeaf360936b49a5e918736b586837"; + hash = "sha256:06yksav0ijinxynnc4zqc84ap1iiiv72afnld14hig9dm74ndkib"; + }; + deps = with depot.third_party; [ + gopkgs."github.com".golang.protobuf.proto + gopkgs."google.golang.org".protobuf.reflect.protoreflect + gopkgs."google.golang.org".protobuf.runtime.protoimpl + gopkgs."google.golang.org".protobuf.types.known.anypb + ]; +} diff --git a/third_party/gopkgs/google.golang.org/grpc/default.nix b/third_party/gopkgs/google.golang.org/grpc/default.nix new file mode 100644 index 0000000000..4adbd6cb31 --- /dev/null +++ b/third_party/gopkgs/google.golang.org/grpc/default.nix @@ -0,0 +1,27 @@ +# SPDX-FileCopyrightText: 2020 Luke Granger-Brown +# +# SPDX-License-Identifier: Apache-2.0 + +{ depot, ... }: +depot.third_party.buildGo.external { + path = "google.golang.org/grpc"; + src = depot.third_party.nixpkgs.fetchFromGitHub { + owner = "grpc"; + repo = "grpc-go"; + rev = "v1.36.1"; + hash = "sha256:0l3prxp18lb0pagqg4l6c9i0l6gakfxgf6vxcsv589i0xsxw8ivm"; + }; + deps = with depot.third_party; [ + gopkgs."golang.org".x.net.http2 + gopkgs."golang.org".x.net.http2.hpack + gopkgs."golang.org".x.net.trace + gopkgs."golang.org".x.sys.unix + gopkgs."github.com".golang.protobuf.proto + gopkgs."github.com".golang.protobuf.ptypes + gopkgs."google.golang.org".protobuf.reflect.protoreflect + gopkgs."google.golang.org".protobuf.runtime.protoimpl + gopkgs."google.golang.org".protobuf.types.known.durationpb + gopkgs."google.golang.org".protobuf.types.known.timestamppb + gopkgs."google.golang.org".genproto.googleapis.rpc.status + ]; +}