depot/go/trains/webapi/default.nix

20 lines
539 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.proto {
2021-11-18 22:24:20 +00:00
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;
}