depot/go/trains/webapi/default.nix

20 lines
551 B
Nix
Raw Normal View History

2021-11-18 22:24:20 +00:00
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
{ depot, ... }@args:
depot.third_party.buildGo.grpc {
2021-11-18 22:24:20 +00:00
name = "webapi";
path = "hg.lukegb.com/lukegb/depot/go/trains/webapi";
goPackage = "webapi";
protos = [ ./types.proto ./webapi.proto ];
withGrpc = true;
extraDeps = with depot.third_party; [
gopkgs."google.golang.org".protobuf.types.known.timestamppb
gopkgs."github.com".jackc.pgtype
];
extraSrcs = [ ./utils.go ];
} // {
summarize = import ./summarize args;
}