depot/go/trains/webapi/default.nix
Luke Granger-Brown 7af28f3ef5 go/trains: split summarizeService into its own package
It might come in handy when sending push notifications to devices...
2021-11-20 19:12:47 +00:00

19 lines
539 B
Nix

# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
{ depot, ... }@args:
(depot.third_party.buildGo.proto {
name = "webapi";
path = "hg.lukegb.com/lukegb/depot/go/trains/webapi";
goPackage = "";
proto = ./webapi.proto;
extraDeps = with depot.third_party; [
gopkgs."google.golang.org".protobuf.types.known.timestamppb
gopkgs."github.com".jackc.pgtype
];
}).overrideGo (old: {
srcs = old.srcs ++ [ ./utils.go ];
}) // {
summarize = import ./summarize args;
}