depot/go/trains/webapi/default.nix

19 lines
552 B
Nix

# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
{ depot, ... }@args:
depot.third_party.buildGo.grpc {
name = "webapi";
path = "git.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;
}