about summary refs log tree commit diff
path: root/proto.nix
blob: dd40def0ff1fa06a742d75a3188960b711a1493e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright 2019 Google LLC.
# SPDX-License-Identifier: Apache-2.0
#
# This file provides derivations for the dependencies of a gRPC
# service in Go.

{ external }:

let
  inherit (builtins) fetchGit map;
in rec {
  goProto = external {
    path = "github.com/golang/protobuf";
    src = fetchGit {
      url = "https://github.com/golang/protobuf";
      rev = "ed6926b37a637426117ccab59282c3839528a700";
    };
  };

  xnet = external {
    path = "golang.org/x/net";
    deps = [ xtext ];
    src = fetchGit {
      url = "https://go.googlesource.com/net";
      rev = "ffdde105785063a81acd95bdf89ea53f6e0aac2d";
    };
  };

  xsys = external {
    path = "golang.org/x/sys";
    src = fetchGit {
      url = "https://go.googlesource.com/sys";
      rev = "bd437916bb0eb726b873ee8e9b2dcf212d32e2fd";
    };
  };

  xtext = external {
    path = "golang.org/x/text";
    src = fetchGit {
      url = "https://go.googlesource.com/text";
      rev = "cbf43d21aaebfdfeb81d91a5f444d13a3046e686";
    };
  };

  genproto = external {
    path = "google.golang.org/genproto";
    src = fetchGit {
      url = "https://github.com/google/go-genproto";
      rev = "83cc0476cb11ea0da33dacd4c6354ab192de6fe6";
    };
  };

  goGrpc = external {
    path = "google.golang.org/grpc";
    deps = [ goProto xnet xsys genproto ];

    src = fetchGit {
      url = "https://github.com/grpc/grpc-go";
      rev = "d8e3da36ac481ef00e510ca119f6b68177713689";
    };

    targets = [
      "."
      "codes"
      "status"
    ];
  };
}