depot/go/trains/webapi/default.nix

20 lines
552 B
Nix
Raw Permalink 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";
2024-11-16 15:30:41 +00:00
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;
}